Skip to content
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

-c option broken in 2.4.1 #2073

Closed
gyandeeps opened this issue Jan 26, 2016 · 5 comments
Closed

-c option broken in 2.4.1 #2073

gyandeeps opened this issue Jan 26, 2016 · 5 comments

Comments

@gyandeeps
Copy link
Contributor

-c CLI option is broken in 2.4.1 but works in 2.3.4.

Scenario 1
If I run mocha with -c flag then it doesnt even run my tests.

./node_modules/mocha/bin/_mocha -R progress -c tests/*.js

Scenario 2
If I run mocha without -c flag then it does run my tests but there is no color.

./node_modules/mocha/bin/_mocha -R progress tests/*.js
@danielstjules
Copy link
Contributor

Related: 1192914

@gyandeeps
Copy link
Contributor Author

Something which is also happening is that the unit test are not run in scenario 1. Its not just about the color.

@gyandeeps
Copy link
Contributor Author

Here is the reason why this is happening because some of the reporters with custom color never got updated with chalk functions:

CC: @danielstjules

@boneskull
Copy link
Member

my bad. I'll fix.

@gyandeeps
Copy link
Contributor Author

I am working on the PR now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants