Thoughts on this maturity model? I’ve been working on this for a while and it has been influenced by the book...
http://blog.figmentengine.com/2010/08/pragmatic-capability-model-of-software.html
interested to see what % coverage people expect in TDD & Acceptance testing? Any good studies in this area?
Also any missing pieces?
Ta!
For the record, greenfield projects I'm on usually hit 95% code coverage without really trying. The wonders of TDD.
S.
I work as an architect for a publishing company, I really interested in
seeing if people think the model is generally applicable.
Lots of people shy away from a % coverage - I agree that if its TDD you
would expect high numbers, but even then people are nervous of targets for
targets sake..
Philip Fitzsimons.
nice to meet you :)
> Lots of people shy away from a % coverage - I agree that if its TDD you
> would expect high numbers, but even then people are nervous of targets for
> targets sake..
rightly so, I've seen teams do stupid things to achieve coverage numbers. It should really be used an indication for possible action, or a symptom of a change in the team, rather than a hard commitment.
S.
> I have the build fail if coverage drops below 100%, but allow code to be
> explicitly excluded from coverage by decorating it with an attribute. This
> means that no code is accidentally committed without test coverage, but if a
> developer decides to exclude some code then they can do so but will have to
> be able to defend their decision.
> Works pretty well.
That's just crazy enough to work, as evidenced by your making it work.
How have people reacted to the implicitly bureaucratic nature of this
system? Have they adjusted well?
--
J. B. (Joe) Rainsberger :: http://www.jbrains.ca ::
http://blog.thecodewhisperer.com
Diaspar Software Services :: http://www.diasparsoftware.com
Author, JUnit Recipes
2005 Gordon Pask Award for contribution to Agile practice :: Agile
2010: Learn. Practice. Explore.
On Mon, Aug 16, 2010 at 04:56, Graeme Foster <gra...@gmail.com> wrote:That's just crazy enough to work, as evidenced by your making it work.
> I have the build fail if coverage drops below 100%, but allow code to be
> explicitly excluded from coverage by decorating it with an attribute. This
> means that no code is accidentally committed without test coverage, but if a
> developer decides to exclude some code then they can do so but will have to
> be able to defend their decision.
> Works pretty well.
How have people reacted to the implicitly bureaucratic nature of this
system? Have they adjusted well?
cheers
Uberto
Testing getters and setters is also dead easy, and can even be done
reflectively if you want... see
http://danhaywood.com/2010/06/11/pojo-properties-auto-testing/
Flame away!
Dan