Skip to content

Instantly share code, notes, and snippets.

@thecodejunkie
Created January 20, 2011 07:52
Show Gist options
  • Save thecodejunkie/787550 to your computer and use it in GitHub Desktop.
Save thecodejunkie/787550 to your computer and use it in GitHub Desktop.
mspec and xunit testing for Nancy using Albacore and Rake
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