On 6/3/14, 1:49 PM, Gavin Sharp wrote:
I suspected this is where we'd end up :) "Reasonability" is just as subjective as aesthetics.
Of cours.
I really have a hard time accepting at face value the argument "Assert.notEqual (or other shorter variants) is unreasonably long to type/paste repeatedly". Hacking on Gecko you have to frequently type much longer things :)
At least for me, hacking on Gecko involves lots of thinking and a bit of typing.
Writing a test from scratch, however, is almost all typing. And the bigger a fraction of that is boilerplate the more frustrating it feels.
I can certainly buy "it's longer than what I'm used to", and even "incremental effort is required" - just not "incremental effort is required and that effort is non-negligible given other factors"
Purely subjectively, it's non-negligible. The more frustrating writing a test is, the less I want to do it, and the more I'll skimp on testing exhaustively... Maybe that's a personal failing of mine, but I suspect not.
The way I see it, anything that makes the test-writing experience more frustrating is a bar to us having better test coverage.
-Boris _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform