lundi 7 mars 2016

Can I run Durandal's Tests Framework outside of PhantomJS?

The Durandal Test Framework runs Jasmine tests within PhantomJS.

Where I'm implementing this for the first time I'm getting a lot of errors, and reading through these on the command prompt is proving to be very tedious.

If I load up the spec.html file in my web browser, it tells me that no specs were found:

No Specs Found; browser screenshot

Yet PhantomJS is able to find the specs with no problem:

64 specs, 1 failure; PhantomJS view

Is there a way I can configure these Jasmine tests to run through my web browser and not through (or as well as) PhantomJS?


I've set up a new index.html file and have replaced the var runTests = ... section with a simple require() call:

require(['../test/specs/system.spec.js']);

Durandal's system.spec.js file is loaded in the browser, but Jasmine is still stating that no specs were found.

Aucun commentaire:

Enregistrer un commentaire