Industry first Jasmine support
JustCode is the first and only tool on the market today that can analyze, show and run your Jasmine tests, no hassles, no configuration or setup, it just works. What it takes to start running Jasmine tests right from within Visual Studio is to open a solution with the “jasmine.js” file included in it.
JustCode will analyze the whole solution and will display all Jasmine tests in the test runner window alongside any other tests you may have. Nested jasmine suites are supported as well.
You can expect all things that work for other test frameworks and languages to work here as well - filtering, grouping, and navigation.
Just hit “Run” for the Fun
To run your Jasmine tests in JustCode all you need to do is hit “Run” and JustCode will generate the required html test page and will populate it with everything it knows about your tests so they can be run successfully without any additional manual work. JustCode will start Internet Explorer browser, execute your Jasmine tests and show you the results.
There is even an option for showing the browser running the tests if you wish so. (JustCode->Options->Unit Testing):
Here the PlayerSpec.js file containing the Jasmine specs (tests) for “Player”, reference tags for the Player.js file and additional Song.js file that is required.
You can even include your own version of Jasmine.js or Jasmine-html.js or both, using js references and JustCode will make sure that it uses yours instead of the default Jasmine.js shipped with JustCode
For correct results there are some requirements (for this release though):
- Visual Studio needs to be elevated (Run as Administrator) so Jasmine tests results are processed correctly
- Internet Explorer requires Allow active content to run files on My Computer to be checked.
Custom html test pages
In some cases you may want to have a custom page for your Jasmine tests. JustCode supports that as well. Just add an html (or htm) web page with the same name as your jasmine tests file and JustCode will run these tests with your test web page instead of auto-generating one.
Keep in mind that Internet Explorer requires you to use “Mark of the Web” in the beginning of your page. We want to handle this requirement better in the future versions of JustCode.
- Support for more browsers out of the box (Firefox, Opera, Chrome and others)
- Remove Visual Studio elevation (Run as administrator) requirement
- Remove mark of the web requirement
- Remove the Internet Explorer active content requirement
The JustCode team