Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split Tests and Integration Tests Scripts #36

Merged
merged 1 commit into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading