make ccnet self test

孤人 提交于 2019-12-01 12:45:20

问题


i want to run a test project in ccnet, can anyone help?


i am not using NUnit. I am using [Test Class()] attribute in my web project, and wanna run this project from ccnet


回答1:


It appears the test framework would be MsTest

In order to run MsTest on the build server you have to install visual studio or do a work around or hack (alternate hack).

Then you can use MsTest.exe

Here is the official documentation on running MSTest tests.

Similar question and more hacks or work-arounds




回答2:


If you're using NUnit, you may want to take a look at the documentation




回答3:


I'd suggest looking in CCNet to run a msbuild task There are a number of examples to run MSTest from MSBuild tasks.

This one looks prommesing: http://harriyott.com/2005/07/running-mstest-from-msbuild.aspx?post=/2005/07/running-mstest-from-msbuild.blogpost

-- I myself am using NUnit and xUnit. Might you consider switching to NUnit for testing? There is a wider adoption of NUnit in combination with CCNet, which makes searching answers easier.



来源:https://stackoverflow.com/questions/3003741/make-ccnet-self-test

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!