Permalink
Browse files

Upgraded to VS2010

  • Loading branch information...
1 parent 07c6647 commit e79e2352abd882169b9201795fe8324b7518de00 @shashankshetty shashankshetty committed Jun 24, 2011
Showing with 17,648 additions and 367 deletions.
  1. +1 −1 RakeFile
  2. +13 −4 build_support/BuildUtils.rb
  3. BIN lib/FluentAssert/FluentAssert.dll
  4. BIN lib/FluentAssert/FluentAssert.pdb
  5. BIN lib/NUnit/NUnit-2.5.10.11092.zip
  6. +277 −0 lib/NUnit/NUnitFitTests.html
  7. +124 −0 lib/NUnit/NUnitTests.VisualState.xml
  8. +85 −0 lib/NUnit/NUnitTests.config
  9. +14 −0 lib/NUnit/NUnitTests.nunit
  10. +5,971 −0 lib/NUnit/TestResult.xml
  11. +4 −0 lib/NUnit/agent.conf
  12. +18 −0 lib/NUnit/agent.log.conf
  13. +0 −342 lib/NUnit/fit-license.txt
  14. +18 −0 lib/NUnit/launcher.log.conf
  15. BIN lib/NUnit/lib/Failure.png
  16. BIN lib/NUnit/lib/Ignored.png
  17. BIN lib/NUnit/lib/Inconclusive.png
  18. BIN lib/NUnit/lib/Skipped.png
  19. BIN lib/NUnit/lib/Success.png
  20. BIN lib/NUnit/lib/fit.dll
  21. BIN lib/NUnit/lib/log4net.dll
  22. BIN lib/NUnit/lib/nunit-console-runner.dll
  23. BIN lib/NUnit/lib/nunit-gui-runner.dll
  24. BIN lib/NUnit/lib/nunit.core.dll
  25. BIN lib/NUnit/lib/nunit.core.interfaces.dll
  26. BIN lib/NUnit/lib/nunit.fixtures.dll
  27. BIN lib/NUnit/lib/nunit.uiexception.dll
  28. BIN lib/NUnit/lib/nunit.uikit.dll
  29. BIN lib/NUnit/lib/nunit.util.dll
  30. +0 −15 lib/NUnit/license.txt
  31. BIN lib/NUnit/nunit-agent-x86.exe
  32. +69 −0 lib/NUnit/nunit-agent-x86.exe.config
  33. BIN lib/NUnit/nunit-agent.exe
  34. +69 −0 lib/NUnit/nunit-agent.exe.config
  35. BIN lib/NUnit/nunit-console-x86.exe
  36. +69 −0 lib/NUnit/nunit-console-x86.exe.config
  37. BIN lib/NUnit/nunit-console.exe
  38. +69 −0 lib/NUnit/nunit-console.exe.config
  39. BIN lib/NUnit/nunit-x86.exe
  40. +83 −0 lib/NUnit/nunit-x86.exe.config
  41. BIN lib/NUnit/nunit.exe
  42. +83 −0 lib/NUnit/nunit.exe.config
  43. +10,407 −0 lib/NUnit/nunit.framework.xml
  44. BIN lib/NUnit/pnunit-agent.exe
  45. +77 −0 lib/NUnit/pnunit-agent.exe.config
  46. BIN lib/NUnit/pnunit-launcher.exe
  47. +77 −0 lib/NUnit/pnunit-launcher.exe.config
  48. BIN lib/NUnit/pnunit.framework.dll
  49. BIN lib/NUnit/pnunit.tests.dll
  50. BIN lib/NUnit/runFile.exe
  51. +43 −0 lib/NUnit/runFile.exe.config
  52. +2 −0 lib/NUnit/runpnunit.bat
  53. +24 −0 lib/NUnit/test.conf
  54. +2 −2 src/FluentWebUITesting.sln
  55. +39 −2 src/FluentWebUITesting/FluentWebUITesting.csproj
  56. +10 −1 src/FluentWebUITesting/FluentWebUITesting.csproj.user
View
@@ -12,7 +12,7 @@ BUILD_NUMBER = "0.1.0."
PRODUCT = "FluentWebUITesting"
COPYRIGHT = 'Copyright 2009 McCreary, Veselka, Bragg & Allen, P.C. All rights reserved.';
COMMON_ASSEMBLY_INFO = 'src/CommonAssemblyInfo.cs';
-CLR_VERSION = "v3.5"
+CLR_VERSION = "v4.0.30319"
versionNumber = ENV["BUILD_NUMBER"].nil? ? 0 : ENV["BUILD_NUMBER"]
@@ -20,18 +20,27 @@ def executeTests(assemblies)
sh "#{@nunitExe} #{file}"
end
end
+
+ def executeCategoryTests(assembly, category)
+ Dir.mkdir @resultsDir unless exists?(@resultsDir)
+
+ file = File.expand_path("#{@sourceDir}/#{assembly}/bin/#{@compileTarget}/#{assembly}.dll")
+ puts "#{@nunitExe} #{file} /include:#{category}"
+ sh "#{@nunitExe} #{file} /include:#{category}"
+ end
end
class MSBuildRunner
def self.compile(attributes)
- version = attributes.fetch(:clrversion, 'v3.5')
- compileTarget = attributes.fetch(:compilemode, 'debug')
+ version = attributes.fetch(:clrversion, 'v4.0.30319')
+ compileMode = attributes.fetch(:compilemode, 'debug')
+ target = attributes.fetch(:target, 'Rebuild')
solutionFile = attributes[:solutionfile]
frameworkDir = File.join(ENV['windir'].dup, 'Microsoft.NET', 'Framework', version)
msbuildFile = File.join(frameworkDir, 'msbuild.exe')
- sh "#{msbuildFile} #{solutionFile} /nologo /maxcpucount /v:m /property:BuildInParallel=false /property:Configuration=#{compileTarget} /t:Rebuild"
+ sh "#{msbuildFile} #{solutionFile} /nologo /maxcpucount /v:m /property:BuildInParallel=true /property:Configuration=#{compileMode} /t:#{target}"
end
end
@@ -41,7 +50,7 @@ def self.compile(attributes)
webPhysDir = attributes.fetch(:webPhysDir, '')
webVirDir = attributes.fetch(:webVirDir, 'This_Value_Is_Not_Used')
- frameworkDir = File.join(ENV['windir'].dup, 'Microsoft.NET', 'Framework', 'v2.0.50727')
+ frameworkDir = File.join(ENV['windir'].dup, 'Microsoft.NET', 'Framework', 'v4.0.30319')
aspNetCompiler = File.join(frameworkDir, 'aspnet_compiler.exe')
sh "#{aspNetCompiler} -nologo -errorstack -c -p #{webPhysDir} -v #{webVirDir}"
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,277 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+ <body>
+ <h1>NUnit Acceptance Tests</h1>
+ <p>
+ Developers love self-referential programs! Hence, NUnit has always run all it's
+ own tests, even those that are not really unit tests.
+ <p>Now, beginning with NUnit 2.4, NUnit has top-level tests using Ward Cunningham's
+ FIT framework. At this time, the tests are pretty rudimentary, but it's a start
+ and it's a framework for doing more.
+ <h2>Running the Tests</h2>
+ <p>Open a console or shell window and navigate to the NUnit bin directory, which
+ contains this file. To run the test under Microsoft .Net, enter the command
+ <pre> runFile NUnitFitTests.html TestResults.html .</pre>
+ To run it under Mono, enter
+ <pre> mono runFile.exe NUnitFitTests.html TestResults.html .</pre>
+ Note the space and dot at the end of each command. The results of your test
+ will be in TestResults.html in the same directory.
+ <h2>Platform and CLR Version</h2>
+ <table BORDER cellSpacing="0" cellPadding="5">
+ <tr>
+ <td colspan="2">NUnit.Fixtures.PlatformInfo</td>
+ </tr>
+ </table>
+ <h2>Verify Unit Tests</h2>
+ <p>
+ Load and run the NUnit unit tests, verifying that the results are as expected.
+ When these tests are run on different platforms, different numbers of tests may
+ be skipped, so the values for Skipped and Run tests are informational only.
+ <p>
+ The number of tests in each assembly should be constant across all platforms -
+ any discrepancy usually means that one of the test source files was not
+ compiled on the platform. There should be no failures and no tests ignored.
+ <p><b>Note:</b>
+ At the moment, the nunit.extensions.tests assembly is failing because the
+ fixture doesn't initialize addins in the test domain.
+ <p>
+ <table BORDER cellSpacing="0" cellPadding="5">
+ <tr>
+ <td colspan="6">NUnit.Fixtures.AssemblyRunner</td>
+ </tr>
+ <tr>
+ <td>Assembly</td>
+ <td>Tests()</td>
+ <td>Run()</td>
+ <td>Skipped()</td>
+ <td>Ignored()</td>
+ <td>Failures()</td>
+ </tr>
+ <tr>
+ <td>nunit.framework.tests.dll</td>
+ <td>397</td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ <td>0</td>
+ <td>0</td>
+ </tr>
+ <tr>
+ <td>nunit.core.tests.dll</td>
+ <td>355</td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ <td>0</td>
+ <td>0</td>
+ </tr>
+ <tr>
+ <td>nunit.util.tests.dll</td>
+ <td>238</td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ <td>0</td>
+ <td>0</td>
+ </tr>
+ <tr>
+ <td>nunit.mocks.tests.dll</td>
+ <td>43</td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ <td>0</td>
+ <td>0</td>
+ </tr>
+ <tr>
+ <td>nunit.extensions.tests.dll</td>
+ <td>5</td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ <td>0</td>
+ <td>0</td>
+ </tr>
+ <tr>
+ <td>nunit-console.tests.dll</td>
+ <td>40</td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ <td>0</td>
+ <td>0</td>
+ </tr>
+ <tr>
+ <td>nunit.uikit.tests.dll</td>
+ <td>34</td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ <td>0</td>
+ <td>0</td>
+ </tr>
+ <tr>
+ <td>nunit-gui.tests.dll</td>
+ <td>15</td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ <td>0</td>
+ <td>0</td>
+ </tr>
+ <tr>
+ <td>nunit.fixtures.tests.dll</td>
+ <td>6</td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ <td>0</td>
+ <td>0</td>
+ </tr>
+ </table>
+ <h2>Code Snippet Tests</h2>
+ <p>
+ These tests create a test assembly from a snippet of code and then load and run
+ the tests that it contains, verifying that the structure of the loaded tests is
+ as expected and that the number of tests run, skipped, ignored or failed is
+ correct.
+ <p>
+ <table BORDER cellSpacing="0" cellPadding="5">
+ <tr>
+ <td colspan="6">NUnit.Fixtures.SnippetRunner</td>
+ </tr>
+ <tr>
+ <td>Code</td>
+ <td>Tree()</td>
+ <td>Run()</td>
+ <td>Skipped()</td>
+ <td>Ignored()</td>
+ <td>Failures()</td>
+ </tr>
+ <tr>
+ <td><pre>public class TestClass
+{
+}</pre>
+ </td>
+ <td>EMPTY</td>
+ <td>0</td>
+ <td>0</td>
+ <td>0</td>
+ <td>0</td>
+ </tr>
+ <tr>
+ <td><pre>using NUnit.Framework;
+
+[TestFixture]
+public class TestClass
+{
+}</pre>
+ </td>
+ <td>TestClass</td>
+ <td>0</td>
+ <td>0</td>
+ <td>0</td>
+ <td>0</td>
+ </tr>
+ <tr>
+ <td><pre>using NUnit.Framework;
+
+[TestFixture]
+public class TestClass
+{
+ [Test]
+ public void T1() { }
+ [Test]
+ public void T2() { }
+ [Test]
+ public void T3() { }
+}</pre>
+ </td>
+ <td><pre>TestClass
+&gt;T1
+&gt;T2
+&gt;T3</pre>
+ </td>
+ <td>3</td>
+ <td>0</td>
+ <td>0</td>
+ <td>0</td>
+ </tr>
+ <tr>
+ <td><pre>using NUnit.Framework;
+
+[TestFixture]
+public class TestClass1
+{
+ [Test]
+ public void T1() { }
+}
+
+[TestFixture]
+public class TestClass2
+{
+ [Test]
+ public void T2() { }
+ [Test]
+ public void T3() { }
+}</pre>
+ </td>
+ <td><pre>TestClass1
+&gt;T1
+TestClass2
+&gt;T2
+&gt;T3</pre>
+ </td>
+ <td>3</td>
+ <td>0</td>
+ <td>0</td>
+ <td>0</td>
+ </tr>
+ <tr>
+ <td><pre>using NUnit.Framework;
+
+[TestFixture]
+public class TestClass
+{
+ [Test]
+ public void T1() { }
+ [Test, Ignore]
+ public void T2() { }
+ [Test]
+ public void T3() { }
+}</pre>
+ </td>
+ <td><pre>TestClass
+&gt;T1
+&gt;T2
+&gt;T3</pre>
+ </td>
+ <td>2</td>
+ <td>0</td>
+ <td>1</td>
+ <td>0</td>
+ </tr>
+ <tr>
+ <td><pre>using NUnit.Framework;
+
+[TestFixture]
+public class TestClass
+{
+ [Test]
+ public void T1() { }
+ [Test, Explicit]
+ public void T2() { }
+ [Test]
+ public void T3() { }
+}</pre>
+ </td>
+ <td><pre>TestClass
+&gt;T1
+&gt;T2
+&gt;T3</pre>
+ </td>
+ <td>2</td>
+ <td>1</td>
+ <td>0</td>
+ <td>0</td>
+ </tr>
+ </table>
+ <h2>Summary Information</h2>
+ <table BORDER cellSpacing="0" cellPadding="5">
+ <tr>
+ <td colspan="2">fit.Summary</td>
+ </tr>
+ </table>
+ </body>
+</html>
Oops, something went wrong.

0 comments on commit e79e235

Please sign in to comment.