0

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

sag
  • 387
  • 1
  • 4
  • 14

3 Answers3

4

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

Community
  • 1
  • 1
Maslow
  • 18,464
  • 20
  • 106
  • 193
0

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

Rob van Groenewoud
  • 1,824
  • 1
  • 13
  • 17
  • hi Rob van, i am not using NUnit. I am using [Test Class()] attribute in my web project, and wanna run this project from ccnet – sag Jun 09 '10 at 08:33
  • @sag: Please add this information to your original question. I'm afraid I'm not that familiar with testing web projects to help you out, but others may. – Rob van Groenewoud Jun 09 '10 at 10:20
0

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.

NP83
  • 172
  • 1
  • 8