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

Travis --no-color, truncated test cases #2060

Closed
kevinawoo opened this issue Jan 20, 2016 · 2 comments
Closed

Travis --no-color, truncated test cases #2060

kevinawoo opened this issue Jan 20, 2016 · 2 comments
Labels
stale this has been inactive for a while... type: question support question

Comments

@kevinawoo
Copy link

When testing using Travis using the option --no-colors, color escape codes are still being outputted. This leads to some test cases being truncated.

Latest mocha master branch
screenshot 2016-01-19 23 39 27

See Travis with --no-color option
screenshot 2016-01-19 23 40 06

Here's the raw outputs of a different repo I have running mocha+travis:

Not truncated, colorized (using mocha) output from travis:

 [0m [0m
 [0m  CAR COLOR: [0m
 [0m    find [0m
 [2K [0G     [32m  ✓ [0m [90m return all car colors [0m [33m (55ms) [0m
 [2K [0G     [32m  ✓ [0m [90m return all managed car colors [0m
 [2K [0G     [32m  ✓ [0m [90m return all unmanaged car colors [0m

Truncated, colorized turned off (using mocha --no-colors) output from travis:

  CAR COLOR:
    find
 [2K [0G      ✓ return all car colors (48ms)
 [2K [0G      ✓ return all managed car colors
 [2K [0G      ✓ return all unmanaged car colors

I've spoken with Travis and they have a couple issues already open for it. Support Engineer's reply:

I am afraid that some escape sequences are hard to emulate on line-oriented log display like ours. For example, [nK (https://github.com/travis-ci/travis-ci/issues/1950) and [nG (https://github.com/travis-ci/travis-ci/issues/1951) are not supported as a result.

Is there a way to suppress these ANSI sequences on your testing tool?

@kevinawoo kevinawoo changed the title Travis --no-color Travis --no-color, truncated test cases Jan 20, 2016
@boneskull
Copy link
Contributor

you'd have to run mocha with --no-colors

@drazisil drazisil added the type: question support question label Mar 30, 2017
@stale stale bot added the stale this has been inactive for a while... label Jul 29, 2017
@stale
Copy link

stale bot commented Jul 29, 2017

I am a bot that watches issues for inactivity.
This issue hasn't had any recent activity, and I'm labeling it stale. In 14 days, if there are no further comments or activity, I will close this issue.
Thanks for contributing to Mocha!

@stale stale bot closed this as completed Aug 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale this has been inactive for a while... type: question support question
Projects
None yet
Development

No branches or pull requests

3 participants