Closed Carreau closed 7 years ago
LGTM. @mahmoudimus?
👍 lgtm
@mahmoudimus, @Carreau, I think this feature should be controllable via command line options. What you think?
@Carreau, please add your name into contributors list. Thanks.
@skudriashev @Carreau something I thought about was I mentioned this earlier in issue #13 and #57. The feedback I received was https://github.com/mahmoudimus/nose-timer/issues/13#issuecomment-49637806.
@Carreau, please add your name into contributors list. Thanks.
Done, Sorry for the delay to respond I had a lot on my plate recently.
I think this feature should be controllable via command line options. What you think?
I can probably do that, though it might make the code much more complicated and harder to maintain as you can get 2 kinds of outputs. And then came the question of default value.
I often think this feature is useful after the fact (Which percentage was this taking 3 month ago ?) – and people are known to be bad at enabling options. If the percentage is on by default; is it worth having a way to disable it ? And in which case is it usefull ?
Anyway I'm new to this codebase so will follow your decision.
@Carreau why would this be better than using something like xunit which gives a parseable report? Did you see my comment here: https://github.com/mahmoudimus/nose-timer/pull/77#issuecomment-232498590 ?
@Carreau why would this be better than using something like xunit which gives a parseable report? Did you see my comment here: #77 (comment) ?
Oh, sorry, because my things are autorunning on travis and using xunit output requires to upload artefacts, and then visualise them using a software. It's useful and a good route if you have the resources to put in that, but not somethings that most open-source software won't/can't invest into.
Having a "hey pip install that and add this flag" is much more likely to get accepted than a change everything to use xunit.
I might be wrong though, or misunderstood your statement about xunit.
Honestly I'd love to have my travis build and push a gh-pages (or to a service) that parse xunit (or json) and display a time report as a service without having to setup a full service, haven't found it though.
LGTM
Looks like that, I think it is useful to get an idea of the time taken by a test, instead of glancing at the total time.