Skip to content

Commit c547947

Browse files
committed
Tests: Utilize NUnit GUI to show test results from build menu. Added NUnit project with all NHibernate tests.
1 parent fc6aef5 commit c547947

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ build/
3535
AssemblyInfo.cs
3636
hibernate.cfg.xml
3737
available-test-configurations
38-
current-test-configuration
38+
current-test-configuration
39+
NHibernate.VisualState.xml

NHibernate.nunit

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<NUnitProject>
2+
<Settings activeconfig="Debug" processModel="Multiple" />
3+
<Config name="Debug" binpathtype="Auto" runtimeFramework="net-2.0">
4+
<assembly path="src\NHibernate.TestDatabaseSetup\bin\Debug\NHibernate.TestDatabaseSetup.dll" />
5+
<assembly path="src\NHibernate.Test\bin\Debug-2.0\NHibernate.Test.dll" />
6+
<assembly path="src\NHibernate.Test.VisualBasic\bin\Debug\NHibernate.Test.VisualBasic.dll" />
7+
</Config>
8+
<Config name="Release" binpathtype="Auto" runtimeFramework="net-2.0">
9+
<assembly path="src\NHibernate.TestDatabaseSetup\bin\Release\NHibernate.TestDatabaseSetup.dll" />
10+
<assembly path="src\NHibernate.Test\bin\Release-2.0\NHibernate.Test.dll" />
11+
<assembly path="src\NHibernate.Test.VisualBasic\bin\Release\NHibernate.Test.VisualBasic.dll" />
12+
</Config>
13+
</NUnitProject>

ShowBuildMenu.bat

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ set NANT=%~dp0Tools\nant\bin\NAnt.exe -t:net-3.5
55
set BUILDTOOL=%~dp0Tools\BuildTool\bin\Release\BuildTool.exe
66
set AVAILABLE_CONFIGURATIONS=%~dp0available-test-configurations
77
set CURRENT_CONFIGURATION=%~dp0current-test-configuration
8+
set NUNIT=%~dp0Tools\nunit\nunit-x86.exe
89

910
:main-menu
1011
echo ========================= NHIBERNATE BUILD MENU ==========================
@@ -38,7 +39,7 @@ if errorlevel 7 goto grammar-menu
3839
if errorlevel 6 goto build-release-package
3940
if errorlevel 5 goto build-release
4041
if errorlevel 4 goto build-debug
41-
if errorlevel 3 goto build-test
42+
if errorlevel 3 goto test-run
4243
if errorlevel 2 goto test-activate
4344
if errorlevel 1 goto test-setup-menu
4445
if errorlevel 0 goto build-visual-studio
@@ -141,10 +142,14 @@ copy %FOLDER%\* %CURRENT_CONFIGURATION%
141142
echo Configuration activated.
142143
goto main-menu
143144

144-
:build-test
145-
%NANT% test
145+
:test-run
146+
start %NUNIT% NHibernate.nunit
146147
goto main-menu
147148

149+
rem :build-test
150+
rem %NANT% test
151+
rem goto main-menu
152+
148153
:build-visual-studio
149154
%NANT% visual-studio
150155
goto main-menu

0 commit comments

Comments
 (0)