Sign In
Register

 

Search

   
 

Archive

   
Readify
 

CruiseControl, Watin and NUnit

Location: BlogsDaniel Bartholomew's Blog    
Posted by: Daniel Bartholomew Monday, August 13, 2007 6:43 PM

I got CruiseControl testing my Watin scripts today, after a couple of tricks:

  • Run NUnit with an app.config file for your test assembly, and specify that NUnit needs to run with a Single Threaded Apartment. See here: Thread.ApartmentState, running Watin with NUnit
  • Run CruiseControl as an application, not a service. I didn't try whether the "Allow service to interact with the desktop" worked, as the local system account wouldn't have been able to get to my VSS server.

Drop me a line if you have any other questions about it.

Permalink |  Trackback

Comments (1)   Add Comment
Re: CruiseControl, Watin and NUnit    By Richard Banks on Tuesday, August 14, 2007 8:56 AM
Good stuff :-)<br><br>I'm assuming you needed to run CruiseControl.NET as an application because the Watin unit tests are part of the build process and Watin is based on browser automation. If you ran with something like httpunit or mstest that works at the html level you could probably continue to run CC.NET as a service.


Your name:
Title:
Comment:
Security Code
Enter the code shown above in the box below
Add Comment   Cancel 
   
Privacy Statement    ||   Terms Of Use