Basically, what I want is a progress bar and that the errors and warnings be displayed immediately. I also want warnings to be printed for slow specs. When using color, I want the entire progress bar printed in green if everything is good, yellow if there has been a warning, and red if there has been an error.
ETA: This isn’t so important for the short test runs that I do over and over again during the BDD cycle… because I expect those tests to finish in under 10 seconds anyway.ВP But anything more than 10 seconds, and I get distracted. An ETA helps me limit my distraction.
Percentage: A nice to have, not a need to have. But knowing how many tests have already run is generally not as interesting to me as how many tests are there total, and what percentage of them have run.
Concise output: if everything is passing, I don’t need to see 4000+ dots displayed across my screen. It would be nice if the entire output would fit into a single line (when there are no failures).
Immediate Feedback: Yeah, the default output gives me an “F”, but what am I supposed to do with an “F”? I won’t know where and what that “F” was until the end of the entire test run, when the summary is dumped.ВP When running through a (functional) test suite that takes three minutes or even fifteen minutes, that just doesn’t work.
I’ve always been a little bit bemused by the default ruby test/unit and rspec output: a series of dots, one for each passing test (or example), and the dots become “F” characters in the event of a failure.ВP Most importantly: it’s simple, unambiguous about pass/fail, and easy to read at a glance, so no problem there.ВP You get a feel for the speed at which the tests are running, and you can visualize how many tests have run already.ВP And it’s easy enough to have them output in color (red or green), to make the errors visually pop out.ВP And it’s drop dead simple.ВP That’s good.
thoughts on software craftsmanship and other technobabble
a better progress bar for rspec « nick evans – devblog
Комментариев нет:
Отправить комментарий