Eric Wilhelm wrote:
I suppose "if($whatever) { some_test() } else { alternate_test()}"
would complicate automatic counting. But, you have to go down one
branch.
But there's no protection that one branch doesn't have a different number of
tests than the other.
The only impossible spot is when tests are inside e.g. a
runtime dispatched method, no? (And, given the procedural paradigm,
that seems to be an odd case.)
No, that's not odd at all. Any data driven testing system will be that way. Tests are run based on
some config file (I know Ovid uses YAML for something like this), etc.
--
Michael Peters
Plus Three, LP