Skip to content

Commit

Permalink
split tests and integration tests scripts into two
Browse files Browse the repository at this point in the history
  • Loading branch information
DEATHB4DEFEAT committed Jan 18, 2024
1 parent 5763e1f commit 45bae9c
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 6 deletions.
11 changes: 11 additions & 0 deletions Scripts/bat/runTests.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
cd ..\..\

dotnet restore
dotnet build --configuration DebugOpt --no-restore /p:WarningsAsErrors=nullable /m

mkdir Scripts\logs

del Scripts\logs\Content.Tests.log
dotnet test --no-build --configuration DebugOpt Content.Tests/Content.Tests.csproj -- NUnit.ConsoleOut=0 > Scripts\logs\Content.Tests.log

pause
3 changes: 0 additions & 3 deletions Scripts/bat/runTestsIntegration.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ dotnet build --configuration DebugOpt --no-restore /p:WarningsAsErrors=nullable

mkdir Scripts\logs

del Scripts\logs\Content.Tests.log
dotnet test --no-build --configuration DebugOpt Content.Tests/Content.Tests.csproj -- NUnit.ConsoleOut=0 > Scripts\logs\Content.Tests.log

del Scripts\logs\Content.IntegrationTests.log
dotnet test --no-build --configuration DebugOpt Content.IntegrationTests/Content.IntegrationTests.csproj -- NUnit.ConsoleOut=0 NUnit.MapWarningTo=Failed > Scripts\logs\Content.IntegrationTests.log

Expand Down
1 change: 1 addition & 0 deletions Scripts/bat/runTestsYAML.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ dotnet restore
dotnet build --configuration DebugOpt --no-restore /p:WarningsAsErrors=nullable /m

mkdir Scripts\logs

del Scripts\logs\Content.YAMLLinter.log
dotnet run --project Content.YAMLLinter/Content.YAMLLinter.csproj --no-build -- NUnit.ConsoleOut=0 > Scripts\logs\Content.YAMLLinter.log

Expand Down
12 changes: 12 additions & 0 deletions Scripts/sh/runTests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
cd ../../

dotnet restore
dotnet build --configuration DebugOpt --no-restore /p:WarningsAsErrors=nullable /m

mkdir Scripts/logs

rm Scripts/logs/Content.Tests.log
dotnet test --no-build --configuration DebugOpt Content.Tests/Content.Tests.csproj -- NUnit.ConsoleOut=0 > Scripts/logs/Content.Tests.log

echo "Tests complete. Press enter to continue."
read
3 changes: 0 additions & 3 deletions Scripts/sh/runTestsIntegration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ dotnet build --configuration DebugOpt --no-restore /p:WarningsAsErrors=nullable

mkdir Scripts/logs

rm Scripts/logs/Content.Tests.log
dotnet test --no-build --configuration DebugOpt Content.Tests/Content.Tests.csproj -- NUnit.ConsoleOut=0 > Scripts/logs/Content.Tests.log

rm Scripts/logs/Content.IntegrationTests.log
dotnet test --no-build --configuration DebugOpt Content.IntegrationTests/Content.IntegrationTests.csproj -- NUnit.ConsoleOut=0 NUnit.MapWarningTo=Failed > Scripts/logs/Content.IntegrationTests.log

Expand Down
1 change: 1 addition & 0 deletions Scripts/sh/runTestsYAML.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ dotnet restore
dotnet build --configuration DebugOpt --no-restore /p:WarningsAsErrors=nullable /m

mkdir Scripts/logs

rm Scripts/logs/Content.YAMLLinter.log
dotnet run --project Content.YAMLLinter/Content.YAMLLinter.csproj --no-build -- NUnit.ConsoleOut=0 > Scripts/logs/Content.YAMLLinter.log

Expand Down

0 comments on commit 45bae9c

Please sign in to comment.