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

Optionally add # time as duration #9

Open
runarberg opened this issue Oct 9, 2017 · 0 comments
Open

Optionally add # time as duration #9

runarberg opened this issue Oct 9, 2017 · 0 comments

Comments

@runarberg
Copy link

runarberg commented Oct 9, 2017

Sometimes I write my test outputs to .tap files and run the formatter as a separate process. In that case I would like to be able to end the file with an indicator for the time duration. For example:

1..42
# tests 42
# pass 40
# fail 2
# time 1024

It would be nice if the test duration could be written straight to the TAP output and that the spec formatter would listen to that when present instead of measuring its own time.

  assertions:  42
  passing:     40
  failing:     2
  duration:    1s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant