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

Remove the no_color.rs integration test #16

Merged
merged 1 commit into from
Apr 29, 2023

Conversation

ericcornelissen
Copy link
Owner

Relates to #5, #13, #14

Summary

Remove the no_color.rs integration test suite for color/ANSI formatting testing. Besides not being named correctly1, the test suite currently doesn't function correctly. This can be observed by removing line 51. This yields identical test results, thus proving the NO_COLOR environment variable is not what's suppressing ANSI formatting in the suite.

Motivation

The test is being removed here as a precaution to avoid false confidence that the suite provides any guarantees w.r.t. NO_COLOR support by this application2. As of this Pull Request no alternative testing strategy for this purpose was found.

Footnotes

  1. no_color_test.rs would align with integration test suite names, color_test.rs or ansi_test.rs would've been even better.

  2. Note that based on manual testing NO_COLOR is properly supported.

Update the integration tests to exclude the suite for color/ansi
formatting testing. The test suite currently doesn't function - removing
line 51 yields the same test results, proving the `NO_COLOR` environment
variable is not what's suppressing ANSI formatting in the suite.

The test is being removed here as a precaution to avoid false confidence
that the suite provides any guarantees w.r.t. `NO_COLOR` support by this
application. As of this commit no alternative testing strategy for this
purpose was found.
@ericcornelissen ericcornelissen added the test Changes to automated tests label Apr 29, 2023
@ericcornelissen ericcornelissen merged commit 10db22c into main Apr 29, 2023
@ericcornelissen ericcornelissen deleted the 14-remove-no-color-test branch April 29, 2023 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Changes to automated tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant