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

Feat add exclude pattern running tests #2361

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

julienbrs
Copy link

@julienbrs julienbrs commented Aug 9, 2024

Closes #1512

Introduced changes

  • Added an --exclude flag that functions similarly to the existing FilterName. This flag allows users to exclude tests based on their names.
  • Note: The current filter functionality works without a specific flag (snforge test simple_test launches all tests beginning with "simple_test", rather than requiring snforge test --filter simple_test). Given this, I believe the new --exclude option might not be compatible with the existing filter option. What do you think?

Checklist

  • Linked relevant issue
  • Updated relevant documentation
  • Added relevant tests
  • Performed self-review of the code
  • Added changes to CHANGELOG.md

@julienbrs julienbrs marked this pull request as ready for review August 19, 2024 08:38
crates/forge/src/run_tests/package.rs Outdated Show resolved Hide resolved
crates/forge/src/run_tests/test_target.rs Show resolved Hide resolved
crates/forge/src/run_tests/package.rs Outdated Show resolved Hide resolved
crates/forge/src/run_tests/package.rs Outdated Show resolved Hide resolved
@integraledelebesgue
Copy link
Member

Please fill the checklist and add your changes to the changelog :)

@integraledelebesgue
Copy link
Member

Also, always make sure to run cargo fmt and cargo lint before committing your changes

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.

Add exclusion of the tests in CLI
2 participants