I have a .NET MVC solution, it contains various javascripts, I want to be able to test those scripts using QUnit, so
Where do I put the test scripts and QUnit artefacts?
In the mvc project? If yes, I then, presumably, need to remove these scripts via a build process when I deploy the application? Seems a bit rubbish? I really don't want test code mixed in with production code.
In a separate "test" web project? Great for better separation, but then I need some build action that will move my SUT scripts to this separate project so they can be referenced by test scripts. Probably preferable to option 1, but still a bit rubbish?
What's the best practice? Is there a best practice? Some other way I haven't mentioned? Any tools that can help? Have I missed something obvious?
This suggests the separate project + Xcopy type solution, but the answer is pretty old.
Thanks.