Skip to content

How to prevent cargo test --all-features from executing after test task #986

Answered by sagiegurari
tmpfs asked this question in Q&A
Discussion options

You must be logged in to vote

@tmpfs i'm assuming few things to show you how it works, see example repo
https://github.com/sagiegurari/misc-test/tree/cargomake_986

myproject - simple lib project with makefiles similar to yours. running test would do things as expected by you

gitpod /workspace/misc-test/myproject (cargomake_986) $ cargo make test
[cargo-make] INFO - cargo make 0.37.4
[cargo-make] INFO - Calling cargo metadata to extract project info
[cargo-make] INFO - Cargo metadata done
[cargo-make] INFO - Project: myproject
[cargo-make] INFO - Build File: Makefile.toml
[cargo-make] INFO - Task: test
[cargo-make] INFO - Profile: development
[cargo-make] INFO - Execute Command: "cargo" "test" "--all" "--lib" "--" "--n…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@tmpfs
Comment options

@sagiegurari
Comment options

Answer selected by tmpfs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants