Created
January 20, 2011 07:52
-
-
Save thecodejunkie/787550 to your computer and use it in GitHub Desktop.
mspec and xunit testing for Nancy using Albacore and Rake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc "Executes MSpec tests" | |
mspec :mspec do |mspec| | |
mspec.command = "tools/mSpec/mspec.exe" | |
mspec.assemblies "src/Nancy.Tests/bin/#{CONFIGURATION}/Nancy.Tests.dll" | |
end | |
testAssemblies = FileList["src/**/#{CONFIGURATION}/*.Tests.dll"].exclude(/obj\//) | |
testAssemblies.each do |testAssembly| | |
desc "Executes xUnit tests" | |
xunit :xunit do |xunit| | |
xunit.command = "tools/xunit/xunit.console.clr4.x86.exe" | |
xunit.assembly = testAssembly | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment