问题
Has anyone successfully used the MSpec Test Adapter with TFS? If yes, can you please shed some light on how I would go on about doing this?
I noticed this post but it uses the console runner.
回答1:
After lots of research and trial and error, I finally figured how to make this work. It's actually pretty easy.
- Install the MSpec Test Adapter on the build server.
- Download the MSpec Test Adapter and change the file type to .zip
- Extract the files to a folder on your build server.
- Point the "Version control path to custom assemblies" to the files in step 3 above. *Note: You can access the window to do this from Visual Studio by clicking Build > Manage Build Controllers > and selecting the controller.
- Ensure in the build definition, you select Visual Studio Test Runner. This can be accessed from the test definition > Process tab > Test > Automated tests > Test source
When you run your build, you should see your tests run.
来源:https://stackoverflow.com/questions/26871402/mspec-test-adapter-with-tfs