-
Notifications
You must be signed in to change notification settings - Fork 60
-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No color console output when protrator jasmine-spec-reporter is run with Grunt task #36
Comments
All right, so if I understand well, you are trying to run protractor with grunt-protractor-runner task. You have configured jasmine-spec-reporter in your protractor conf. When you run protractor alone, colors are displayed but not when you run it with the grunt task. I use the grunt-protractor-runner task my self and I have no problems with it. Have you correctly set the noColor option? |
So, I've currently been trying to track down why its not displaying the colors. The noColor option has been set to false. I can only replicate the color display issue when running protractor with grunt. Currently these are all the version of dependencies I am running. I haven't had time to try older version of jasmine, protractor, ect... At this point I'm now leaning towards there being an issue with grunt or test runner not jasmine-spec-runner. I'll let you know if I find the issue
|
I'm running into the same issue, no color output with : |
Still haven't found a fix. I've tried older versions of grunt protractor runner and protractor with no luck. |
I'm having the same problem after upgrading from |
Can you reproduce it by clonining this repository and launching the protractor example? |
@bcaudan I can't -- the example works! I also tried updating it to skip starting the selenium server and use |
@bcaudan Just a hunch, but it might be due to a difference in how Protractor is launched. I launch it as a node child process and I would imagine that the grunt task does something similar. |
This issue is due to the plugin used to color the jasmine-spec-reporter output, if you run jasmine test into a child process with output piped, then colors are not displayed. So you can have this issue if you use It is related to Marak/colors.js#127. |
Nice that did it! After adding colors.enabled to jasmine-spec-reporter.js all the colors are now displaying with grunt. var colors = require('colors'); |
I have added it in v2.2.3. |
https://stackoverflow.com/questions/29320180/protractor-with-mocha-chai-dont-display-errors-since-1-8-0-migration?newreg=65f63d9e0e184da28a652989872c7d89
Summery of issue described in this stackoverflow thread. I've encountered the same issue running protractor tests through a grunt task where colors will not show up in the output. Running of test with protractor alone has no issues and the colors will display fine.
The text was updated successfully, but these errors were encountered: