gruntjs - Protractor with Mocha/Chai don't display errors since 1.8.0 migration -


i'm having lot e2e tests done protractor 1.3.1 / mocha 1.21.4 , chai 1.9.1.

since migrate protractor 1.8.0, mocha 2.2.1, i've got no error description when test fail. make hard find wrong.

example :

we connected mongo !     show/hide login bar :       √ should see login bar       √ should see loggin button       √ should not see loggout button     account creation popup :       √ should see create account form (944ms)       √ should not able submit form       √ should possible submit form after checking cg (1102ms)       √ should not possible submit form without typing email, pseudo , accounttype (530ms)       √ should possible submit form email, pseudo , accounttype (2325ms)       √ should possible create account submitting form (1423ms)       √ should not possible create account existing , activated     show direct account creation popup :       √ should display accountcreationpopup when calling /create-account.html (1980ms)     exception thrown: keeping selenium server alive  d:\projets\clouderial\nodeprojects\cld-apps\node_modules\grunt-protractor-runner\node_modules\protractor\node_modules\selenium-webdriver\lib\atoms\error.js:113   var template = new error(this.message);                  ^ >> >> test failed keep grunt process alive. 

i've tried different mocha reporter without success.

any cluse appreciated.

jean-marc

edit : i've notice problem appears when protractor run grunt , grunt-protractor-runner running protractor grunt-protractor-runner outside grunt works. command run :

node_modules/grunt-protractor-runner/node_modules/protractor/bin/protractor test/protractor/e2e.conf.js 

same command same config runned grunt mask errors.

edit 2 : colors in mocha reporter not displayed when running inside grunt , displayed outside grunt. maybe give clues happens.

i ran similar issue jasmine-spec-reporter , of @bcaudan think problem has been found. had set enabled property of colors true:

var colors = require('colors'); colors.enabled = true; 

here initial thread issue discussed.

here thread shows current fix issue.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -