Skip to content
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

TAP reports can't be appended if there are failed tests #2099

Closed
jcamiel opened this issue Oct 27, 2023 · 0 comments · Fixed by #2095
Closed

TAP reports can't be appended if there are failed tests #2099

jcamiel opened this issue Oct 27, 2023 · 0 comments · Fixed by #2095
Labels
bug Something isn't working
Milestone

Comments

@jcamiel
Copy link
Collaborator

jcamiel commented Oct 27, 2023

TAP reports can't be appended if there are failed tests:

$ hurl --test --report-tap build/result.tap tests_ok/test.1.hurl tests_ok/test.2.hurl
$ hurl --test --report-tap build/result.tap tests_ok/test.3.hurl
tests_ok/test.1.hurl: Running [1/2]
tests_ok/test.1.hurl: Success (1 request(s) in 8 ms)
tests_ok/test.2.hurl: Running [2/2]
error: Assert body value
  --> tests_ok/test.2.hurl:8:1
   |
 8 | `Goodbye World!`
   | ^^^^^^^^^^^^^^^^ actual value is <Hello World!>
   |

tests_ok/test.2.hurl: Failure (2 request(s) in 2 ms)
write tap report build/result.tap
--------------------------------------------------------------------------------
Executed files:  2
Succeeded files: 1 (50.0%)
Failed files:    1 (50.0%)
Duration:        19 ms

tests_ok/test.3.hurl: Running [1/1]
tests_ok/test.3.hurl: Success (1 request(s) in 4 ms)
write tap report build/result.tap
error: Invalid TAP line <not ok 2 - tests_ok/test.2.hurl> - must start with ok or nok
1..2
ok 1 - tests_ok/test.1.hurl
not ok 2 - tests_ok/test.2.hurl

Thanks @msinton

@jcamiel jcamiel added the bug Something isn't working label Oct 27, 2023
@jcamiel jcamiel added this to the 4.2.0 milestone Oct 27, 2023
@jcamiel jcamiel linked a pull request Oct 27, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant