-
Notifications
You must be signed in to change notification settings - Fork 129
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
Make test file pattern configurable and not force test_* naming convention. #50
Comments
Users can now override the test_* pattern for integration tests using a new env var. CARGO_MAKE_KCOV_INTEGRATION_TEST_FILE_PATTERN = "my_tests_*" |
hmm, I was thinking of a more "it works out of the box magically", as in given a crate with some integration tests, |
will try, but rustc doesn't make life easier with all those hashs and stuff. |
Fixed in 0.9.2, all tests will now run and no configuration is needed or special naming convesions. |
I tried out 0.9.2, and the A quick scripting solution to reduce the noise could be to run things that match: find "${BINARY_DIR}" -type f -executable -maxdepth 1 | grep -e "-[0-9a-f]\{16\}$"
Random thought, does
|
This should restrict the files run during coverage to the test executables relevant to the workspace. Issue sagiegurari#50
This prevents the need to discover binaries relevant to the current coverage collection operation, which has proven to be difficult / error prone. Issue sagiegurari#50
This prevents the need to discover binaries relevant to the current coverage collection operation, which has proven to be difficult / error prone. Issue sagiegurari#50
Its actually being executed in target/debug and not target/debug/dep or am I mistaken? |
Yeap that's right, I think I was based off an older
It doesn't work for this set up:
The Restricting the match pattern to be the crate name wouldn't work for the app1 crate, since the binary name is |
when developing libraries, I have both unit tests (test files in the src folder) and integration tests (in the tests folder). |
Closing this issue. If you think we can do something reopen it and we will see what more can be done. |
Based on @azriel91 feedback in #44
The text was updated successfully, but these errors were encountered: