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

Add --summary option to print tests metrics #232

Closed
lepapareil opened this issue Jul 6, 2021 · 0 comments · Fixed by #248
Closed

Add --summary option to print tests metrics #232

lepapareil opened this issue Jul 6, 2021 · 0 comments · Fixed by #248
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@lepapareil
Copy link
Collaborator

lepapareil commented Jul 6, 2021

hurl version = 1.2.0

I write 4 test files, all 4 will succeed.

Currently I get:

$ hurl --output /dev/null /tmp/test*.hurl

What i expect using the new parameter --summary

$ hurl --output /dev/null --summary /tmp/test*.hurl
------------------------------------------------------
executed: 4
success: 4 (100%)
failed: 0 (0%)
execution time: 8000 ms
average time: 2000 ms
min time: 500 ms
max time: 3000 ms

I write 4 test files, 3 will succeed, 1 will fail.

Currently I get:

$ hurl --output /dev/null /tmp/test*.hurl
error: Assert Status
  --> /tmp/test2.hurl:2:10
   |
 2 | HTTP/1.1 302
   |          ^^^ actual value is <301>
   |

what i expect using the new parameter --summary

$ hurl --output /dev/null --summary /tmp/test*.hurl
error: Assert Status
  --> /tmp/test2.hurl:2:10
   |
 2 | HTTP/1.1 302
   |          ^^^ actual value is <301>
   |
------------------------------------------------------
executed: 4
success: 3 (75%)
failed: 1 (25%)
------------------------------------------------------
elapsed time: 4000 ms
average time: 1000 ms
min time: 500 ms
max time: 1500 ms
------------------------------------------------------
@lepapareil lepapareil added the enhancement New feature or request label Jul 6, 2021
@fabricereix fabricereix linked a pull request Jul 27, 2021 that will close this issue
@fabricereix fabricereix changed the title add --summary option to print tests metrics Add --summary option to print tests metrics Sep 1, 2021
@lepapareil lepapareil added this to the 1.3.0 milestone Oct 12, 2021
@lepapareil lepapareil removed the 1.3.0 label Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants