@@ -10,9 +10,10 @@ set NUNIT="%~dp0Tools\NUnit.ConsoleRunner.3.7.0\tools\nunit3-console.exe"
1010:main-menu
1111echo ========================= NHIBERNATE BUILD MENU ==========================
1212echo --- TESTING ---
13- echo B. (Step 1) Set up a new test configuration for a particular database.
14- echo C. (Step 2) Activate a test configuration.
15- echo D. (Step 3) Run tests using active configuration (Needs built in Visual Studio).
13+ echo A. (Step 1) Set up a new test configuration for a particular database.
14+ echo B. (Step 2) Activate a test configuration.
15+ echo C. (Step 3) Run tests using active configuration with 32bits runner (Needs built in Visual Studio).
16+ echo D. Or run tests using active configuration with 64bits runner (Needs built in Visual Studio).
1617echo .
1718echo --- BUILD ---
1819echo E. Build NHibernate (Debug)
@@ -29,14 +30,15 @@ echo --- Exit ---
2930echo X. Make the beautiful build menu go away.
3031echo .
3132
32- %BUILDTOOL% prompt BCDEFGHIX
33- if errorlevel 8 goto end
34- if errorlevel 7 goto teamcity-menu
35- if errorlevel 6 goto build-async
36- if errorlevel 5 goto build-release-package
37- if errorlevel 4 goto build-release
38- if errorlevel 3 goto build-debug
39- if errorlevel 2 goto test-run
33+ %BUILDTOOL% prompt ABCDEFGHIX
34+ if errorlevel 9 goto end
35+ if errorlevel 8 goto teamcity-menu
36+ if errorlevel 7 goto build-async
37+ if errorlevel 6 goto build-release-package
38+ if errorlevel 5 goto build-release
39+ if errorlevel 4 goto build-debug
40+ if errorlevel 3 goto test-run-64
41+ if errorlevel 2 goto test-run-32
4042if errorlevel 1 goto test-activate
4143if errorlevel 0 goto test-setup-menu
4244
@@ -166,9 +168,15 @@ copy "%FOLDER%\*" "%CURRENT_CONFIGURATION%"
166168echo Configuration activated.
167169goto main-menu
168170
169- :test-run
171+ :test-run-32
172+ SET NUNITPLATFORM = --x86
173+ goto test-run
174+
175+ :test-run-64
170176SET NUNITPLATFORM =
171- IF /I " %PLATFORM% " NEQ " x64" set NUNITPLATFORM = --x86
177+ goto test-run
178+
179+ :test-run
172180start " nunit3-console" cmd /K %NUNIT% %NUNITPLATFORM% --agents=1 --process=separate NHibernate.nunit
173181goto main-menu
174182
0 commit comments