question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Show human readable times on summary

See original GitHub issue

Currently the test summary shows the total time in seconds:

============== 11 passed in 174.98 seconds ==============

I propose we show a human-readable times instead:

============== 11 passed in 2:54.98 seconds =============

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:12 (11 by maintainers)

github_iconTop GitHub Comments

9reactions
nicoddemuscommented, Aug 8, 2019

Here’s how the last 2 suggestions look like, using pytest’s own summary so we can look at a real case:

====== 2377 passed, 85 skipped, 11 xfailed, 1 warnings in 342.63 seconds ======= 

Changes to:

==== 2377 passed, 85 skipped, 11 xfailed, 1 warnings in 342.63s (00:05:42) =====

I personally like it. 👍

6reactions
arthursopranacommented, Aug 8, 2019

I guess @tadeu 's suggestion looks good. However I think using hh:mm:ss would be more interesting, e.g.,

============ 11 passed in 174.98 s (00:02:54) =============

I am aware that tests are not supposed to take hours to run, but using the complete notation seems to eliminate any confusion.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Displaying Human Readable Time Spans - No Longer Set
Display the time span in the largest units possible (e.g., 5 minutes instead of 300 seconds); Concatenate multiple units with commas; Handle ...
Read more >
Display human readable time from EPOCH time - PHP
I want to convert this time to a human readable format. I have written in my select query, which is not working. $sql...
Read more >
Human readable memory sizes in top? - Unix Stack Exchange
Show activity on this post. You can switch the memory unit by pressing e . E will select the memory unit in the...
Read more >
Linux and Unix du command tutorial with examples
Tutorial on using du, a UNIX and Linux command for estimating file space usage. Examples of showing a disk usage summary, outputting a...
Read more >
Linux commands: du and the options you should be using
The lowly du command has a lot to offer space-exploring sysadmins ... to get a summary of the directory's usage in a human-readable...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found