sstephenson / bats

Bash Automated Testing System
MIT License
7.12k stars 519 forks source link

Show test spent time #156

Open david-caro opened 8 years ago

david-caro commented 8 years ago

It would be really useful to get the test run time along with the result when running the tests, that will allow easier check of which tests are taking most of the time and ease building faster tests

michaelshobbs commented 8 years ago

I'd love to see this feature built-in as well. In the meantime, we've instrumented the dokku test suite thusly. It's obviously not the same as per test timing but it at least shows us how long each bats file takes.

skyscribe commented 8 years ago

I like this idea also, it would be helpful to measure which case kills the cpu and know I have to turn back to the wrapped command and do manual profiling by time command

harschware commented 8 years ago

See PR #177