-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.bat
More file actions
64 lines (57 loc) · 1.65 KB
/
test.bat
File metadata and controls
64 lines (57 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
@echo off
chcp 65001 >nul
setlocal EnableDelayedExpansion
echo ========================================
echo Mud Code Generator - Run Tests
echo ========================================
echo.
set VERBOSITY=normal
set FAILED=0
echo [1/4] Running Mud.HttpUtils.Tests...
dotnet test Tests\Mud.HttpUtils.Tests\Mud.HttpUtils.Tests.csproj --verbosity %VERBOSITY% --nologo
if errorlevel 1 (
echo [FAILED] Mud.HttpUtils.Tests
set FAILED=1
) else (
echo [PASSED] Mud.HttpUtils.Tests
)
echo.
echo [2/4] Running Mud.HttpUtils.Generator.Tests...
dotnet test Tests\Mud.HttpUtils.Generator.Tests\Mud.HttpUtils.Generator.Tests.csproj --verbosity %VERBOSITY% --nologo
if errorlevel 1 (
echo [FAILED] Mud.HttpUtils.Generator.Tests
set FAILED=1
) else (
echo [PASSED] Mud.HttpUtils.Generator.Tests
)
echo.
echo [3/4] Running Mud.EntityCodeGenerator.Tests...
dotnet test Tests\Mud.EntityCodeGenerator.Tests\Mud.EntityCodeGenerator.Tests.csproj --verbosity %VERBOSITY% --nologo
if errorlevel 1 (
echo [FAILED] Mud.EntityCodeGenerator.Tests
set FAILED=1
) else (
echo [PASSED] Mud.EntityCodeGenerator.Tests
)
echo.
echo [4/4] Running Mud.ServiceCodeGenerator.Tests...
dotnet test Tests\Mud.ServiceCodeGenerator.Tests\Mud.ServiceCodeGenerator.Tests.csproj --verbosity %VERBOSITY% --nologo
if errorlevel 1 (
echo [FAILED] Mud.ServiceCodeGenerator.Tests
set FAILED=1
) else (
echo [PASSED] Mud.ServiceCodeGenerator.Tests
)
echo.
echo ========================================
echo Test Summary
echo ========================================
if %FAILED%==1 (
echo Some tests FAILED!
exit /b 1
) else (
echo All tests PASSED!
)
echo.
echo Done!
endlocal