-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
33 lines (29 loc) Β· 799 Bytes
/
build.bat
File metadata and controls
33 lines (29 loc) Β· 799 Bytes
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
@echo off
setlocal enabledelayedexpansion
echo π¨ Building GameOfLife solution...
dotnet build
if !errorlevel! neq 0 (
echo β Build failed
exit /b !errorlevel!
)
echo π§ͺ Running tests with coverage...
dotnet test
if !errorlevel! neq 0 (
echo β Tests failed or coverage threshold not met
exit /b !errorlevel!
)
echo π Generating coverage report...
reportgenerator ^
-reports:"GameOfLifeTests\TestResults\coverage.cobertura.xml" ^
-targetdir:".\" ^
-reporttypes:"TextSummary" ^
-title:"GameOfLife Coverage Report"
if !errorlevel! neq 0 (
echo β Report generation failed
exit /b !errorlevel!
)
echo β
Build pipeline completed successfully!
echo.
echo π Coverage report generated at: coverage-report\index.html
echo π Summary:
type .\Summary.txt