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

Allow passing options to cargo test #183

Merged
merged 1 commit into from
Aug 16, 2021
Merged

Allow passing options to cargo test #183

merged 1 commit into from
Aug 16, 2021

Conversation

JohnnyMorganz
Copy link
Contributor

This PR allows passing arguments to cargo test when cargo insta test is run, by doing passing arguments after a --
e.g. cargo insta test -- --test test_name

Closes #182

Other options which were normally forwarded to cargo test such as cargo insta test --release or cargo insta test --features feature_name were left for backwards compatibility. They should probably be deprecated in favour of cargo insta test -- --release etc., not sure if you want to put a message as such or just leave it?

@mitsuhiko mitsuhiko merged commit 34a6f8f into mitsuhiko:master Aug 16, 2021
sthagen added a commit to sthagen/mitsuhiko-insta that referenced this pull request Aug 16, 2021
Allow passing options to cargo test (mitsuhiko#183)
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.

Pass a specific test to run in cargo insta test
2 participants