-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Report time first for option --duration yes ? #322
Comments
would work for me maybe also switch from the |
This would replace all the shell scripts we currently use to deduce test timing - bring it on! :-) |
Yeah, that formatting was a bit tacked on. I'd always meant to revisit. |
+1 |
Someone is working on this already? I may try to implement it if nobody is already doing this. |
Was "<section-name> completed in XXX s." Now is "XXX s: <section-name>" Closes #322
I took a look at this and ended up with this
I thought about changing the reported time to milliseconds, but then decided against it -- if your long running tests still finish in lot less than a second, then you probably don't care about how long they actually take. |
@horenmar, if you want you can add this snippet (below). I think it ends up looking better:
|
@paulobrizolara I'd prefer to keep the units uniform, to simplify possible parsing. |
Well, i may be wrong, but I don't think this reporter is intended to machine processing. Anyway, congratulations for your work. This issue was open for more than 2 years! 😮 |
Thanks @paulobrizolara - @horenmar has been incredible at working through the backlog. See http://www.levelofindirection.com/journal/2017/1/19/catch-up.html for more. |
Uou! I am not using Catch to so many time, but i really likes it! Congrats @philsquared, @horenmar and all community for the work! 👍 |
Btw, @philsquared , do you think it worths to change the time units format (to something like the initial proposal), besides the possible problems with parsing? |
I'm in two minds about it. On the one hand I agree that consistency is nice - and makes it easier even for human readers. |
My opinion is that it is not meant for parsing for cases that really matter, but those use-cases could afford to parse ms/s/etc properly anyway. My expected use case is something along the lines of I agree that the current output could be improved, and I think that changing the output to use fixed format with 2 decimal places would be nicer than the current state, and I'll make the change before the next release, but I don't quite think that dynamic units are that improvement.* * Standardizing on milliseconds might be an improvement, that depends on how people want to use it -- do they care about which tests take so long, or do they really care about how long each test takes? After all, Catch is not a benchmarking library and should not be used as such. |
Currently the console reporter reports test durations as:
The presentation below seems easier to read and to sort:
I'm wondering if this would matter to anyone?
The text was updated successfully, but these errors were encountered: