-
Notifications
You must be signed in to change notification settings - Fork 71
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
cucumber integration tests fail to accept standard libtest args #264
Comments
@sophokles73 we actually do support |
Thanks for the reply. Using the libtest features seems to allow passing in cargo test -- -Z unstable-options --report-time --format json
...
error: unexpected argument '--report-time' found
note: argument '--retry-after' exists |
@sophokles73 we currently don't support this feature, but you can ignore it with custom CLI option. |
Actually, I think we already report timing, just don't support CLI option. Should be a relatively easy fix, will look into it in the near future. |
I use the custom cli approach to swallow the |
@sophokles73 hm, it seems like
Why do you use it? Is it some tool, that automatically passes those arguments? |
I am adding cucumber tests to an existing code base that currently only uses unit tests and specifies these options for executing the tests on CI ... |
@sophokles73 as this crate supports only You should be able to remove this flag from CI. If not, working workaround with custom CLI options was found. I'm closing this issue, but feel free to reopen in case there are question left. |
I see your point. However, what you state is only true for cucumber-rs, i.e. for libtest, it actually makes a difference to add |
@ilslv let's handle |
Oh, didn't realise that. With that in mind, this feature makes sense, thanks. Implemented it in #265 |
I am trying to add some cucumber based integration tests to an existing suite of standard rust unit tests.
The tests are run in a CI job with
cargo test --all-targets -- -Z unstable-options --report-time --format json
which fails when the first cucumber based integration test is run with:
error: unexpected argument '-Z' found
I guess this is because the cucumber test harness does not support/understand the standard libtest args.
However, I haven't yet found out, how I could exclude the cucumber based integration tests from being run by the
cargo test ...
command.Any hints?
The text was updated successfully, but these errors were encountered: