views:

18

answers:

0

MVC 2 app with a Web project (including external JS files used by Views) and a Tests project (including a Nunit test to launch QUnit tests with WatiN). Everything runs fine if I include the QUnit test html and JS in the Web project and use Cassini to launch it. However, I want to avoid having any QUnit test code in the Web project, so I have a pre-build event to copy the Web's javascript file(s) to the same folder in the Test project as the QUnit and NUnit tests.

My question is...can I use WatiN inside the Nunit test to launch BaseScriptTests.htm, without having Cassini/localhost running? Would it matter if all these files in the Test project have their Build Action set to Compiled or Content?

This will also need to run on a TFS build server, so all the more reason to avoid launching IIS or a built in web server to execute this test