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
println! in steps is not working as expected. #177
Comments
@antonkol unfortunately this is feature isn't supported. The main reason behind it is a concurrent I'll leave this issue open with a |
To achieve natural output, you'll need to do the following steps:
writer::Basic::raw(stdout(), writer::Coloring::Never, false)
.summarized()
Full example: let res = World::cucumber()
.max_concurrent_scenarios(1)
.with_writer(writer::AssertNormalized(
// ^^^^^^^^^^^^^^^^ doesn't exist yet.
writer::Basic::raw(stdout(), writer::Coloring::Never, false)
.summarized(),
))
.with_cli(cli)
.run_and_exit("tests/features/wait"); Output for
So even with all those steps we first see output of the |
It's not a problem though, as we have them close to the performed step.
Hmmm, I think we should add them, along with ext-helpers, so we have: let res = World::cucumber()
.max_concurrent_scenarios(1)
.with_writer(
writer::Basic::raw(stdout(), writer::Coloring::Never, false)
.summarized()
.assert_normalized(),
)
.with_cli(cli) // do we really need this line here? It should work without it.
.run_and_exit("tests/features/wait"); |
Oh, of corse no, left it by mistake
Ok |
Done. Now it's only left to describe in new Book in #171. |
Done. |
i have few println! inside steps and when i am executing tests information in println! appears before all Cucumber log.
Something like this:
Is there a way to output println! below appropriate step ?
Something like this:
The text was updated successfully, but these errors were encountered: