Skip to content

cargo test does not run test_apply ? #455

Answered by jqnatividad
udsamani asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @udsamani ,
To run all tests, be sure to set these features:

cargo test --features=apply,fetch,foreach,generate,lua,python,full

#or shorthand, use all_full which is equivalent to enabling all the features for the full binary variant
cargo test --features all_full

To run the test_apply suite specifically, at the very least, the apply feature needs to be enabled:

cargo test test_apply --features apply

And yes, all tests are indeed run in CI:

https://github.com/jqnatividad/qsv/blob/3b5ec48c9107acbfb88d66b60627cf64c19e0f1d/.github/workflows/rust.yml#L37-L38

This is all because we have four different qsv binary variants - qsv, qsvlite, qsvdp and qsvnp - and we have different feature flags…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@udsamani
Comment options

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