Kris,
That's not true at all. We do have test counts, which is actually
where a lot of work goes to ensure things like Theories and
Parameterized testing works properly with this count. FlashBuilder,
FDT and IntelliJ all seem to use this count correctly, which is how
they report the number of tests run at the beginning of the test run.
Counting the number of Test methods, as you pointed out, won't work at
all.
Regarding a good way to get this value, there is a property on the
Description object called testCount. Before the very first test is
run, this entire count is computed.
When the test run starts, all of the listeners have their
testRunStarted() method called and passed a description for this
entire set of tests. If you were to trace (description.testCount ) in
that method, you would see an accurate test count.
The description is where test information lives. All runners already
have a public API which provides the description.
Mike