-
Notifications
You must be signed in to change notification settings - Fork 69
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
Json CLI Argument #194
Comments
@rob-mur I cannot really grasp what you're after here. Could you provide a little bit more of context? Regarding JSON exapmples, aren't they about Cucumber Messages protocol? |
So I don't think this is related to cucumber but rust more generally. One of the cli options of cargo test is -- --format which clion is using to get JSON output of the tests (just pass fail pieces I think). The issue is that this cli argument is passed in to the test harness (in this case cucumber) which currently throws an error (at least for me on the latest release). I'm away from my pc but from memory the error is that "json formatter is only available on the nightly compiler", however changing to nightly doesn't seem to resolve it. To recreate for yourself, just try running some set of tests with cargo test -- --format=json and see what happens. |
The exact error I'm getting is
I'll see if I can narrow down where exactly this is happening. |
@rob-mur the problem with CLion is, that it's always expects default test harness which has |
Thanks for the response. I'll have a go later and see what the result is with that argument skipped as you suggest. It may be however that this output is required to integrate properly with the IDE and then we could look in to taking this argument and producing an equivalent output? |
I'll look into that and maybe implement custom |
I've had a go, and using a custom cli struct for format, Z and show-output, you can get CLion to run the tests. This is already a great step forward as it allows you to utilise the CLion debugger in tests so many thanks for that! My gut feeling was right though in that as far as the IDE is concerned there are no test results so it doesn't quite integrate as expected. Feel free to have a go if you like but it's not particularly high priority! |
…e with IntelliJ Rust pugin (#220, #194, #203, #218) - add `libtest` Cargo feature - impl `writer::Libtest` - describe IntelliJ Rust integration in Book Additionally: - rework `writer::Failure`/`writer::discard::Failure` as `writer::Stats`/`writer::discard::Stats` - add `writer::Or` to alternate between 2 `Writer`s basing on predicate - add `FeatureExt::count_steps()` method Co-authored-by: Kai Ren <tyranron@gmail.com>
Hi
I've been having a go at using CLion for rust with Cucumber, and have ran into an issue.
When tests are ran they append a
format=json
argument to the inner test harness. This is different to the JSON output required by smartbear for their cucumber for jira integration, an example of what standard lib tests output is below:This looks relatively simple, and I'm not sure yet which bits are actually required by CLion, but please let me know if anyone has any information. Otherwise over the next little while I'll see if I can get a working fork.
The text was updated successfully, but these errors were encountered: