vendredi 26 février 2016

Jasmine Karma . Test failing after a specific number of tests(page reload error)

I am testing an angular application using karma jasmine, I have about 10 spec files , with a total of 10 describes and 48 test cases. The problem is that ,I am getting an error whenever the test case exceeds 47, the error says , some of the tests did a full page reload. i tried by commenting out random test cases and limited to 47 , then it works fine. even a blank 48th test case is giving the error ,

"jasmine-core": "^2.4.1",
"jshint-stylish": "^1.0.0",
"karma": "^0.13.21",
"karma-chrome-launcher": "^0.2.2",
"karma-coverage": "^0.5.3",
"karma-firefox-launcher": "^0.1.7",
"karma-jasmine": "^0.3.7",
"karma-ng-html2js-preprocessor": "^0.2.1",
"karma-phantomjs-launcher": "^1.0.0",

this is my version of karma and related dependencies .

Aucun commentaire:

Enregistrer un commentaire