mspec

How to integrate MSpec with MS Build?

百般思念 提交于 2019-11-30 05:12:05
Few days ago I watched a BDD screencast by Rob Conery . In the video he showed how to use MSpec , so I downloaded it and played with the bits. What I want now is to integrate MSpec with MS Build, but I don't know how... I use TFS team build as my CI server - Can you help me to integrate MSpec with MSBuild? Thanks! At the moment the easiest way is to just Exec it. <Target Name="RunSpecs"> <PropertyGroup> <MSpecCommand> lib\machine\specifications\Machine.Specifications.ConsoleRunner.exe $(AdditionalSettings) path\to\your\project\bin\Debug\Your.Project.Specs.dll path\to\your\other\project\bin

Spec fails when run by mspec.exe, but passes when run by TD.NET

一个人想着一个人 提交于 2019-11-29 16:33:57
I wrote about this topic in another question . However, I've since refactored my code to get rid of configuration access, thus allowing the specs to pass. Or so I thought. They run fine from within Visual Studio using TestDriven.Net. However, when I run them during rake using the mspec.exe tool, they still fail with a serialization exception. So I've created a completely self-contained example that does basically nothing except setup fake security credentials on the thread. This test passes just fine in TD.Net, but blows up in mspec.exe. Does anybody have any suggestions? Update: I've

How to integrate MSpec with MS Build?

有些话、适合烂在心里 提交于 2019-11-29 04:03:20
问题 Few days ago I watched a BDD screencast by Rob Conery. In the video he showed how to use MSpec, so I downloaded it and played with the bits. What I want now is to integrate MSpec with MS Build, but I don't know how... I use TFS team build as my CI server - Can you help me to integrate MSpec with MSBuild? Thanks! 回答1: At the moment the easiest way is to just Exec it. <Target Name="RunSpecs"> <PropertyGroup> <MSpecCommand> lib\machine\specifications\Machine.Specifications.ConsoleRunner.exe $