D
David Garamond
This post is related to the other one I sent earlier. It is about the
requirement we have on how we might solve it elegantly using Test::Unit.
We'd like to put several metadata into the test collection to get a
better picture of the state of the tests. At least we'd like to get the
following information:
1. total number of test methods, cases, and suites.
2. LOC per each test case and test suite, and total LOC dedicated to
testing (this will eventually be compared to total LOC of code, LOC of
comments, LOC of documentation, etc); aside from LOC, number of
chars/bytes will also be used as another unit of measure.
3. number (and, as % of LOC) of tests that are interactive (i.e. GUI tests).
4. time-cost of each test case and total (i.e. we assign a number/weight
to each test case to get a feel of how long tests will run).
(Of course, some of the above, like #1 and #2, are easy to accomplish
with a couple of lines of Ruby...)
And there will also be lots of measurements to be put into the database
about the results after each run, e.g.: number of assertions, number of
test methods/cases that succeed/failed, actual run time of tests, etc.
requirement we have on how we might solve it elegantly using Test::Unit.
We'd like to put several metadata into the test collection to get a
better picture of the state of the tests. At least we'd like to get the
following information:
1. total number of test methods, cases, and suites.
2. LOC per each test case and test suite, and total LOC dedicated to
testing (this will eventually be compared to total LOC of code, LOC of
comments, LOC of documentation, etc); aside from LOC, number of
chars/bytes will also be used as another unit of measure.
3. number (and, as % of LOC) of tests that are interactive (i.e. GUI tests).
4. time-cost of each test case and total (i.e. we assign a number/weight
to each test case to get a feel of how long tests will run).
(Of course, some of the above, like #1 and #2, are easy to accomplish
with a couple of lines of Ruby...)
And there will also be lots of measurements to be put into the database
about the results after each run, e.g.: number of assertions, number of
test methods/cases that succeed/failed, actual run time of tests, etc.