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

Fix #strip_diff_colors output for CircleCI #59

Merged
merged 1 commit into from
May 30, 2018
Merged

Conversation

qbart
Copy link
Contributor

@qbart qbart commented May 24, 2018

Hello,

small regex improvement for stripping out colored text, you can see how it works before and after the change:

before:
before

after:
after

hope that helps

@sj26
Copy link
Owner

sj26 commented May 26, 2018

Hi @qbart, thanks for the contribution! Could you please add a failing test case demonstrating the issue?

@sj26
Copy link
Owner

sj26 commented May 26, 2018

Please try upgrading to the latest version:

https://rubygems.org/gems/rspec_junit_formatter/versions/0.4.0

@qbart
Copy link
Contributor Author

qbart commented May 28, 2018

sure, after the upgrade i will add missing test scenario

@bf4
Copy link

bf4 commented May 30, 2018

FWIW, I've addressed this as follows

      - run:
          name: "Strip ANSI codes"
          command: sed -i -E  's/\\e\[[0-9;]+m//g' tmp/rspec/*.xml
          when: always

@sj26
Copy link
Owner

sj26 commented May 30, 2018

Ah, I see the problem — CodeRay does sometimes use multiple tags in the same ansi code. I'll merge this and tweak!

@sj26 sj26 merged commit 0ecd30d into sj26:master May 30, 2018
@sj26
Copy link
Owner

sj26 commented May 30, 2018

Released in v0.4.1!

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

Successfully merging this pull request may close these issues.

3 participants