mocha-phantomjs

npm error ELIFECYCLE while running the test

前提是你 提交于 2019-12-18 04:37:27
问题 I am using mocha-phantomjs setup for unit testing. I have following package.json scriot to run the tests. "scripts": { "test": "npm run testFlickr", "testFlickr": "mocha-phantomjs ./test/FlickrTest.html" } This run ok in browser. And when I run the command npm test in cmd, the test run alright but it also gives following error 3 passing (5s) 6 failing npm ERR! flickr-test@ testFlickr: `mocha-phantomjs ./test/FlickrTest.html` npm ERR! Exit status 6 npm ERR! npm ERR! Failed at the flickr-test@

mocha-phantomjs test case for callback function

纵饮孤独 提交于 2019-12-14 04:18:44
问题 I have a module in which I have this function flickrPhotoSearch: function (searchByName, flickrUserKey, numberOfImages, callbackData) { return $.ajax({ url: commonConstants.BASE_URL + "flickr.photos.search&api_key=" + flickrUserKey + "&tags=" + searchByName + "&format=json&jsoncallback=?", dataType: 'json', async: true, success: function (jsonData) { if (jsonData.stat === commonConstants.JSON_SUCCESS) { if (jsonData.photos['photo'].length < commonConstants.DATA_LENGTH) { callbackData(jsonData

Selenium ends randomly with uncaught error

自古美人都是妖i 提交于 2019-12-11 07:15:23
问题 I'm using mocha, webdriverio, phantomjs Trying to find a way why Selenium is failing in random cases (50% its ok, 50% breaks in different tests with the same code). The error is Uncaught RuntimeError (UnknownError:13) An unknown server-side error occurred while processing the command. Problem: POST /session//url Build info: version: '2.42.0', revision: '5e82430', time: '2014-05-22 19:00:03' System info: host: 'example.com', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '2.6

npm error ELIFECYCLE while running the test

烈酒焚心 提交于 2019-11-29 05:52:43
I am using mocha-phantomjs setup for unit testing. I have following package.json scriot to run the tests. "scripts": { "test": "npm run testFlickr", "testFlickr": "mocha-phantomjs ./test/FlickrTest.html" } This run ok in browser. And when I run the command npm test in cmd, the test run alright but it also gives following error 3 passing (5s) 6 failing npm ERR! flickr-test@ testFlickr: `mocha-phantomjs ./test/FlickrTest.html` npm ERR! Exit status 6 npm ERR! npm ERR! Failed at the flickr-test@ testFlickr script. npm ERR! This is most likely a problem with the flickr-test package, npm ERR! not