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

Need (optional) parameter for test duration #21

Closed
afbjorklund opened this issue May 4, 2021 · 0 comments
Closed

Need (optional) parameter for test duration #21

afbjorklund opened this issue May 4, 2021 · 0 comments

Comments

@afbjorklund
Copy link
Contributor

afbjorklund commented May 4, 2021

When passing in a pre-generated json file, the duration is for reading the file

$ gotestsum --jsonfile test_report.json
✓  . (8ms)
∅  embed_assets

DONE 16 tests in 0.569s
$ go-test-report < test_report.json 
[go-test-report] finished in 115.295321ms

⧉ Total: 16 Duration: 1ms ✓ Passed: 16 ‐ Skipped: 0 ✗ Failed: 0

If you want to show the original time it took to run the test, it needs a param

--duration 0.569

perhaps parse any "s" or "ms" suffix in the parameter, for user convenience.

@afbjorklund afbjorklund changed the title Need parameter for test duration Need (optional) parameter for test duration May 4, 2021
@afbjorklund afbjorklund closed this as not planned Won't fix, can't repro, duplicate, stale Aug 22, 2023
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

Successfully merging a pull request may close this issue.

1 participant