Hi Adam and Scott,
From what we see, it seems that only the junit tests are executed.
Cobertura or any other code-coverage tool does not know how to test /use
simple methods, and are only testing java code.
From what I know, it is the same for all coverage tools, so it would be
necessary to develop our tool or plugin for OFBiz simple method ...
I was planning on doing the same on our CI server,
http://selenium.ofbiz.fr/, along with the junit and selenium results.
I'm not such a technical guy, but I'm ready to test/comment/help on any
dev you'd like to plan to execute.
cheers,
Le 10/12/2009 03:16, Scott Gray a écrit :
Hi Adam,
Looking at the results my first impression is that the coverage is
under-reported. For example, the accounting component has quite a few
tests but no coverage is shown at all (except for the test package
itself). Possibly because there is lot of logic in simple methods but
I'm 100% sure java code is also run during the tests.
But still a great start and something that will be immensely useful if
we can up the accuracy a bit.
Thanks
Scott
HotWax Media
http://www.hotwaxmedia.com
On 10/12/2009, at 2:43 PM, Adam Heath wrote:
I've thrown some things together this week, to implement code coverage
anaylsis for ofbiz. The code itself is not tied to any particular
code coverage tool(there's a plugin system for it). Currently I have
one written for cobertura, but that's gpl, so not compatible with apache.
The first run I just finished had some test failures. I haven't
looked to see if this is because of the coverage plugin, or some other
reason.
Anyways, without further ado, here is the output:
http://www.brainfood.com/ofbiz-coverage/
Things to note are the entity, service, and minilang components.
Those have so-so coverage.
However, just about every other component has no testing whatsoever.
--
Erwan de FERRIERES
www.nereide.biz