I am currently testing an application and are using several different versions of tests for it. One block of tests are theory testcases. Last week I managed to use the Adobe code coverage libary to analize the stautus of my tests and how many cases are covered.
With the normal tests I have no problem. Though by the theory testcases only the constructor of the testclass gets evaluated. As soon as the real test starts the monitoring stops.
Does the theory testrunner support the code coverage listeners?
If no are there any plans to support this?
If that gets also answered with no, does paramized tests support code coverage?
Okay roughly a month ago I found the answer and I want to share it.
Code coverage records all kind of tests out of FlexUnit 0.9.
The theory tests are supported by Fluint 1.
flexUnit 4 combines the two libs. So in the end you can use Code cover which is supported by Adobe just for FlexUnit 0.9 tests. If you want a code coverage tool for all kinds of tests in FlexUnit 4 I advice you to get FlexCover.
So happy testing evryone.
Sorry I didn't see this post before.
I don't know much about Adobe's code coverage solution, but, do you have any sense why it wouldn't cover parameterized tests or theories? That sounds ludicrous? It should just be evaluating that code is covered, it should have no information about what constitutes a test.
No problem. Evrybody can slip a topic.
I refer to this flashbuilder plugin: http://www.adobe.com/devnet/flash-builder/articles/ascode-coverage.htm l
If I would know why ... I would tell you it. But to be honest I only know that round about 150 async and/or theory tests that I had written did record anything. The recorded code stoped right after the setUp where I use an Async.proceedOnEvent statement to make sure evrything is set up for the test.
Extensions for FlexUnit 0.9 like eventful tests (from Tom Sugden http://blogs.adobe.com/tomsugden/2008/01/eventfultestcase_a_flexunit_e x.html) get recorded by this plugin.
Europe, Middle East and Africa