-
Notifications
You must be signed in to change notification settings - Fork 43
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
diag and note messages don't show up in prove output #180
Comments
This behaviour can be explained from the fact that the test results (and |
hmm. I guess one of the questions could be: what does |
Ok. The behaviour that I'm seeing is to print either the diag output or the note output (but not both), even for subtests, even when |
When I played around with this i noticed this behavior: When all the test pass note and diag are not printed. If the test fails both are printed.
Te error output prints everything # Failed test 'Given input of Fred Bloggs'
# at nesting/features/nesting.feature line 7.
# in step at nesting/features/nesting.feature line 7.
# # test note
# # test diag 1
# not ok 2 - test
# # Failed test 'test'
# # at /home/dragos/projects/cucumber/nesting/features/step_definitions/nesting_steps.pl line 34.
# # got: '1'
# # expected: '0'
# # test diag 2
|
that's correct: on error all TAP output of the step is shown. The TAP output gets captured by the Test::BDD::Cucumber harness and needs to be relayed in some form or another to |
I'm wondering how to show the diag output even if the test did not fail. |
I called 'diag' and 'note' in the *_steps.pl file, but they are not displayed when I run
prove
.Not even with 'prove -v`
I think it would be very useful to be able to see these messages, or to have some other way to add comments to the steps scripts that will show up in the output of
prove
The text was updated successfully, but these errors were encountered: