mahmoudimus / nose-timer

A timer plugin for nosetests (how much time does every test take?)
MIT License
126 stars 33 forks source link

Option to show only the tests above the ok/warning threshold #66

Closed sprt closed 9 years ago

sprt commented 9 years ago

It would be nice to be able to filter the tests based on their color.

skudriashev commented 9 years ago

@sprt, what you think about having --filter (or --show or --show-only) switch (that would be accumulative) with usage:

nosetests ... --filter ok    # to show green tests
nosetests ... --filter warning    # to show yellow tests
nosetests ... --filter error    # to shown red tests
nosetests ... --filter ok --filter warning    # to show green and yellow tests

@mahmoudimus, what you think about this feature?

sprt commented 9 years ago

Yup, sounds good! Maybe allow concatenating too, like --filter ok,warning.

skudriashev commented 9 years ago

@sprt, please, checkout my last commit.

sprt commented 9 years ago

Awesome! Thank you! :sparkles:

mahmoudimus commented 9 years ago

@skudriashev, looks great! :+1:

skudriashev commented 9 years ago

@mahmoudimus thanks! I'll close this issue.

mahmoudimus commented 9 years ago

Might be related to issue https://github.com/mahmoudimus/nose-timer/issues/7