Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 0cf04a1

Browse files
author
Meaghan Lewis
authored
Update parameters for test.cmd
Config parameter which is Debug by default. Exclude parameter which is an empty string by default.
1 parent 273a590 commit 0cf04a1

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

test.cmd

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
@echo off
22
setlocal
33

4+
set Config=Debug
5+
if not %1.==. (
6+
set Config=%1
7+
)
8+
9+
set Exclude=''
10+
if not %2.==. (
11+
set Exclude=%2
12+
)
13+
414
:: make sure at Unity project root directory
515
set NunitDirectory=packages\NUnit.Runners.2.6.4\tools
616
echo %NunitDirectory%
717
set ConsoleRunner=%NunitDirectory%\nunit-console.exe
818
echo %ConsoleRunner%
919

1020
:: run tests
11-
echo Running "build\IntegrationTests\IntegrationTests.dll" "build\IntegrationTests\TestUtils.dll" "build\TaskSystemIntegrationTests\TaskSystemIntegrationTests.dll" "build\UnitTests\TestUtils.dll" "build\UnitTests\UnitTests.dll" "src\tests\TestUtils\bin\Release\TestUtils.dll" %1
12-
call %ConsoleRunner% "build\IntegrationTests\IntegrationTests.dll" "build\IntegrationTests\TestUtils.dll" "build\TaskSystemIntegrationTests\TaskSystemIntegrationTests.dll" "build\UnitTests\TestUtils.dll" "build\UnitTests\UnitTests.dll" "src\tests\TestUtils\bin\Release\TestUtils.dll" %1
21+
echo Running "build\IntegrationTests\IntegrationTests.dll" "build\IntegrationTests\TestUtils.dll" "build\TaskSystemIntegrationTests\TaskSystemIntegrationTests.dll" "build\UnitTests\TestUtils.dll" "build\UnitTests\UnitTests.dll" "src\tests\TestUtils\bin\Release\TestUtils.dll" /config=%Config% /exclude=%Exclude%
22+
call %ConsoleRunner% "build\IntegrationTests\IntegrationTests.dll" "build\IntegrationTests\TestUtils.dll" "build\TaskSystemIntegrationTests\TaskSystemIntegrationTests.dll" "build\UnitTests\TestUtils.dll" "build\UnitTests\UnitTests.dll" "src\tests\TestUtils\bin\Release\TestUtils.dll" /config=%Config% /exclude=%Exclude%
1323

1424
endlocal

0 commit comments

Comments
 (0)