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

Show more precise time duration in reporter epilogue #4149

Closed
yomed opened this issue Jan 13, 2020 · 2 comments
Closed

Show more precise time duration in reporter epilogue #4149

yomed opened this issue Jan 13, 2020 · 2 comments
Labels
status: wontfix typically a feature which won't be added, or a "bug" which is actually intended behavior type: feature enhancement proposal

Comments

@yomed
Copy link

yomed commented Jan 13, 2020

Describe the solution you'd like
At the end of a test run, the total duration currently shows a rounded value, like 1m. It would be great if this was more precise, like 1m 12s 354ms or 00:01:12.354.

Additional context
The relevant code appears to be in the base reporter epilogue, here:

Base.consoleLog(fmt, stats.passes || 0, milliseconds(stats.duration));

@yomed yomed added the type: feature enhancement proposal label Jan 13, 2020
@yomed
Copy link
Author

yomed commented Oct 4, 2020

This should be straightforward once ms supports decimal places vercel/ms#125

@juergba juergba added the dependencies Pull requests that update a dependency file label Dec 10, 2021
@JoshuaKGoldberg
Copy link
Member

Per #4797 (comment):

No, we are not planing to change the time format in our reports. Quite a few third-party reporters are using mocha/lib/reporters/base.js, so this would be a breaking change.

You can create your own reporter and implement your desired time format.

@JoshuaKGoldberg JoshuaKGoldberg closed this as not planned Won't fix, can't repro, duplicate, stale Dec 27, 2023
@JoshuaKGoldberg JoshuaKGoldberg added status: wontfix typically a feature which won't be added, or a "bug" which is actually intended behavior and removed dependencies Pull requests that update a dependency file labels Dec 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: wontfix typically a feature which won't be added, or a "bug" which is actually intended behavior type: feature enhancement proposal
Projects
None yet
Development

No branches or pull requests

3 participants