This Question is Possibly Answered

1 "correct" answer available (4 pts) 1 "helpful" answer available (2 pts)
10 Replies Last post: May 25, 2012 4:01 PM by Victor Kropp  
john dhom Newbie 13 posts since
Jan 12, 2012
Currently Being Moderated

May 16, 2012 6:47 AM

R#r 7 jasmine javascript unittest setup

Do jasmine unit tests work in R#r 7 EAP?  If so, can someone point me to info

on how to configure same?

 

I have been running my jasmine unittests with jsTestDriver.

 

R#r 7 recognizes the jasmine unittests and I can launch the test runner and the browser launches but no joy.

 

What does R#r use as the server for jasmine unit tests?

 

/jhd

Victor Kropp JetBrains 131 posts since
May 6, 2009
Currently Being Moderated
May 16, 2012 12:24 PM in response to: john dhom
Re: R#r 7 jasmine javascript unittest setup

When running Jasmine tests browser window is intentionally left blank. All results are presented in ReSharper's Unit Test Session tool window. I'll add some kind of progress in browser as well later.

 

R# uses own custom web server to serve tests and collect results, it start every time you launch tests.

 

If you could provide sample of your tests, I could check if everything works correctly in your case.

Victor Kropp JetBrains 131 posts since
May 6, 2009
Currently Being Moderated
May 24, 2012 9:08 PM in response to: john dhom
Re: R#r 7 jasmine javascript unittest setup

Hi John,

 

jasmine.getFixtures() and some other methods seem to be specific jsTestDriver code, that's why it fails in ReSharper.

 

You could reference your JavaScript code files via doc-comment references, e. g.

 

/// <reference path="path/to/code.js />

Victor Kropp JetBrains 131 posts since
May 6, 2009
Currently Being Moderated
May 25, 2012 4:01 PM in response to: john dhom
Re: R#r 7 jasmine javascript unittest setup

Hi John,

 

yes,  Jasmine runner is built-in. At the moment it's not possible to change its version, but I expect this feature to be available before 7.0 release.

 

What kind of support do you need for managing references?

More Like This

  • Retrieving data ...