Permalink
Browse files

Tests: Utilize NUnit GUI to show test results from build menu. Added …

…NUnit project with all NHibernate tests.
  • Loading branch information...
1 parent fc6aef5 commit c547947d84dbbed1d450952f42226edaee9ac172 @patearl patearl committed Sep 5, 2011
Showing with 23 additions and 4 deletions.
  1. +2 −1 .gitignore
  2. +13 −0 NHibernate.nunit
  3. +8 −3 ShowBuildMenu.bat
View
@@ -35,4 +35,5 @@ build/
AssemblyInfo.cs
hibernate.cfg.xml
available-test-configurations
-current-test-configuration
+current-test-configuration
+NHibernate.VisualState.xml
View
@@ -0,0 +1,13 @@
+<NUnitProject>
+ <Settings activeconfig="Debug" processModel="Multiple" />
+ <Config name="Debug" binpathtype="Auto" runtimeFramework="net-2.0">
+ <assembly path="src\NHibernate.TestDatabaseSetup\bin\Debug\NHibernate.TestDatabaseSetup.dll" />
+ <assembly path="src\NHibernate.Test\bin\Debug-2.0\NHibernate.Test.dll" />
+ <assembly path="src\NHibernate.Test.VisualBasic\bin\Debug\NHibernate.Test.VisualBasic.dll" />
+ </Config>
+ <Config name="Release" binpathtype="Auto" runtimeFramework="net-2.0">
+ <assembly path="src\NHibernate.TestDatabaseSetup\bin\Release\NHibernate.TestDatabaseSetup.dll" />
+ <assembly path="src\NHibernate.Test\bin\Release-2.0\NHibernate.Test.dll" />
+ <assembly path="src\NHibernate.Test.VisualBasic\bin\Release\NHibernate.Test.VisualBasic.dll" />
+ </Config>
+</NUnitProject>
View
@@ -5,6 +5,7 @@ set NANT=%~dp0Tools\nant\bin\NAnt.exe -t:net-3.5
set BUILDTOOL=%~dp0Tools\BuildTool\bin\Release\BuildTool.exe
set AVAILABLE_CONFIGURATIONS=%~dp0available-test-configurations
set CURRENT_CONFIGURATION=%~dp0current-test-configuration
+set NUNIT=%~dp0Tools\nunit\nunit-x86.exe
:main-menu
echo ========================= NHIBERNATE BUILD MENU ==========================
@@ -38,7 +39,7 @@ if errorlevel 7 goto grammar-menu
if errorlevel 6 goto build-release-package
if errorlevel 5 goto build-release
if errorlevel 4 goto build-debug
-if errorlevel 3 goto build-test
+if errorlevel 3 goto test-run
if errorlevel 2 goto test-activate
if errorlevel 1 goto test-setup-menu
if errorlevel 0 goto build-visual-studio
@@ -141,10 +142,14 @@ copy %FOLDER%\* %CURRENT_CONFIGURATION%
echo Configuration activated.
goto main-menu
-:build-test
-%NANT% test
+:test-run
+start %NUNIT% NHibernate.nunit
goto main-menu
+rem :build-test
+rem %NANT% test
+rem goto main-menu
+
:build-visual-studio
%NANT% visual-studio
goto main-menu

0 comments on commit c547947

Please sign in to comment.