4

ReSharper 6.1 comes with support for Unit Testing Javascript code using QUnit. Only thing I wonder about how to best set up my test environment. Right now I have all my JS files in \Scripts and the according filename-test.js in \Scripts\tests. Does it also work to put the test files in a dedicated test project?

Also I'm not sure where to put my html snippets. For me it looks like ReSharper does not support additional html files but creating the html using jQuery is a pain in the ass.

Kuepper
  • 992
  • 13
  • 39

1 Answers1

1

In this post you can see an example of how to set up ReSharper with QUnit http://blogs.jetbrains.com/dotnet/2011/03/resharper-6-introduces-support-for-javascript-unit-testing/

You can use reference paths to organize your code a little but different project AFAIK is not available.

Hadi Hariri
  • 4,656
  • 2
  • 24
  • 13
  • I know this article but it does not answer my questions. It's written about R# 6.0 whereas 6.1 introduces some improvements. Also it says nothing about html snippets. – Kuepper Jan 16 '12 at 09:59