-
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
Output location of fn
that matched the Step
#221
Conversation
# Conflicts: # CHANGELOG.md # README.md # book/src/introduction.md # book/src/output/json.md # book/src/output/junit.md # book/src/output/multiple.md # book/src/quickstart.md # book/src/writing/hooks.md # codegen/CHANGELOG.md # codegen/src/lib.rs # codegen/src/world.rs # src/codegen.rs # src/cucumber.rs # src/lib.rs # src/writer/summarize.rs # tests/after_hook.rs # tests/cli.rs # tests/json.rs # tests/junit.rs # tests/output.rs # tests/wait.rs
FCM
|
# Conflicts: # CHANGELOG.md # tests/libtest.rs # tests/libtest/correct.stdout
# Conflicts: # CHANGELOG.md # book/src/output/intellij.md # src/writer/discard.rs # src/writer/libtest.rs # src/writer/mod.rs # src/writer/or.rs # tests/features/output/background_scenario.feature.out # tests/libtest/correct.stdout
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed in voice:
-
More clear error output like:
Step failed Defined: tests/features/wait/nested/rule.feature:17:7 Matched: tests/wait.rs:47:1
-
Strip project root dir from
.feature
path, if possible. -
For
libtest::Writer
with--show-output
show path for both.feature
file and step function. -
Fix duplicated Intellij Rust
.gif
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ilslv overall implementation is fine now. Just tests need correction.
Synopsis
Often I find myself struggling to find
fn
, that matched theStep
, especially to debug the failure.Solution
Output
step::Location
of thefn
that matchedStep
:writer::Libtest
, in case--show-output
option is enabled. Only for failed ones otherwise.writer::Basic
,writer::Json
andwriter::Junit
Checklist
Draft:
prefixDraft:
prefix is removed