jeudi 16 juillet 2015

Unable to run Jasmine tests using PhantomJS

I am using jasmine-2.3.4 and run-jasmine.js. But I always get the following undefined error. I am very new to it and unsure what could be the exact command to execute my test file.

Running Jasmine test file using phantomjs

Below is my project structure: It's an extjs based project compiled via sencha cmd. The jasmine library files are in /js/jasmine/. /js/test/test-app.js file initializes jasmine.

enter image description here

Below is QuestionControllerSpec.js file where the test codes are written.

Test functions defined file

The jasmine test runs perfectly fine.

enter image description here

Aucun commentaire:

Enregistrer un commentaire