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

[New] Add --ignore-pattern flag #587

Merged
merged 1 commit into from
Dec 15, 2022
Merged

Conversation

ppati000
Copy link
Contributor

This PR introduces the --ignorePattern flag as a shorthand for ignoring test files.

The flag may be used together with --ignore; the input will be concatenated in that case. I figured this behavior would make the most sense, since users may want to ignore everything in .gitignore and some other files on top.

Let me know if this looks good, then I'll also add some documentation :)

Fixes #586

This PR introduces the --ignore-pattern flag as a shorthand for ignoring test files.

The flag may be used together with --ignore; the input will be concatenated in that case. I figured this behavior would make the most sense, since users may want to ignore everything in .gitignore and some other files on top.

Fixes tape-testing#586
Copy link
Collaborator

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems pretty reasonable, assuming the tests fail without the bin/tape changes.

bin/tape Outdated Show resolved Hide resolved
bin/tape Outdated Show resolved Hide resolved
bin/tape Outdated Show resolved Hide resolved
test/ignore_pattern.js Outdated Show resolved Hide resolved
@ljharb ljharb added the semver-minor: new stuff Any additions. label Nov 24, 2022
@ppati000 ppati000 requested a review from ljharb November 28, 2022 10:47
@ljharb ljharb changed the title [Ignore] Introduce --ignorePattern flag [New] Add --ignore-pattern flag Nov 29, 2022
@ljharb
Copy link
Collaborator

ljharb commented Nov 29, 2022

I've rebased this, and renamed the flag to ignore-pattern to more closely match command-line convention.

All that's missing now is documentation.

@ljharb ljharb force-pushed the ignore-pattern branch 2 times, most recently from b3c4940 to 1e1d5fa Compare November 29, 2022 19:53
@codecov
Copy link

codecov bot commented Nov 29, 2022

Codecov Report

Base: 96.36% // Head: 96.36% // No change to project coverage 👍

Coverage data is based on head (8c9fe8e) compared to base (e9c9aba).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #587   +/-   ##
=======================================
  Coverage   96.36%   96.36%           
=======================================
  Files           4        4           
  Lines         632      632           
  Branches      148      148           
=======================================
  Hits          609      609           
  Misses         23       23           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ppati000
Copy link
Contributor Author

ppati000 commented Dec 1, 2022

@ljharb cool, thank you 👌 I've added some documentation now, feel free to make any adjustments as needed!

readme.markdown Outdated Show resolved Hide resolved
@ljharb ljharb merged commit 8c9fe8e into tape-testing:master Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Suggestion: Ignore pattern directly instead of pointing to a file?
4 participants