Fuzzy unit testing in Python -
i'd write set of "fuzzy" unit tests in python. far i've been using testtools
, switching different framework fine.
my test suite aiming test performance of image-processing algorithms. i'd able have tests report fuzzy pass states. in other words, results "good enough" might useful investigate.
i have this:
suite = unittest.testloader().loadtestsfromtestcase(testmyalgorithm) result = testtools.testresult() result.starttestrun() try: suite.run(result) finally: result.stoptestrun()
i'd use information in result
object generate report, looks of information associated passed tests has been tossed.
i'm wondering if i'm abusing notion of unit test fit sort of investigation.
is there standard way perform sort of testing in python?
assuming goal here reporting, tool can generate detailed report in xml format (e.g. nosetests
; py.test
has similar support), , process report want in second step.
Comments
Post a Comment