[jira] [Updated] (OFBIZ-4773) Migrate to JACOCO for code coverage analysis

2015-02-20 Thread Sharan Foga (JIRA)
[ https://issues.apache.org/jira/browse/OFBIZ-4773?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sharan Foga updated OFBIZ-4773: --- Sprint: Bug Crush Event - 21/2/2015 Migrate to JACOCO for code coverage analysis

[jira] [Updated] (OFBIZ-4773) Migrate to JACOCO for code coverage analysis

2014-04-23 Thread Christian Geisert (JIRA)
[ https://issues.apache.org/jira/browse/OFBIZ-4773?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Geisert updated OFBIZ-4773: - Component/s: framework Migrate to JACOCO for code coverage analysis

[jira] [Commented] (OFBIZ-4773) Migrate to JACOCO for code coverage analysis

2013-10-22 Thread Jacques Le Roux (JIRA)
://jira.codehaus.org/browse/SONAR-3536]. The ASF supports both ([SonarQube results are there|https://analysis.apache.org/]) Anyway, after working some time on it, I'm also in favor of evaluating the Jacoco possibility, see OFBIZ-4757 Migrate to JACOCO for code coverage analysis

[jira] [Commented] (OFBIZ-4773) Migrate to JACOCO for code coverage analysis

2013-10-22 Thread Pierre Smits (JIRA)
on this: https://bitbucket.org/jmhofer/cobertura4sbt/wiki/Home But it appears to be proven otherwise. Nothing changes as fast as the people do. Regards, Pierre Migrate to JACOCO for code coverage analysis Key: OFBIZ-4773

[jira] [Created] (OFBIZ-4773) Migrate to JACOCO for code coverage analysis

2012-03-30 Thread Pierre Smits (Created) (JIRA)
Migrate to JACOCO for code coverage analysis Key: OFBIZ-4773 URL: https://issues.apache.org/jira/browse/OFBIZ-4773 Project: OFBiz Issue Type: Improvement Reporter: Pierre Smits

[jira] [Updated] (OFBIZ-4773) Migrate to JACOCO for code coverage analysis

2012-03-30 Thread Pierre Smits (Updated) (JIRA)
[ https://issues.apache.org/jira/browse/OFBIZ-4773?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pierre Smits updated OFBIZ-4773: Affects Version/s: SVN trunk Migrate to JACOCO for code coverage analysis

[jira] [Commented] (OFBIZ-4773) Migrate to JACOCO for code coverage analysis

2012-03-30 Thread Jacques Le Roux (Commented) (JIRA)
ML: more audience (for those who filter) Migrate to JACOCO for code coverage analysis Key: OFBIZ-4773 URL: https://issues.apache.org/jira/browse/OFBIZ-4773 Project: OFBiz Issue

[jira] [Reopened] (OFBIZ-3662) Resolve base unit tests not executing and not contributing to code coverage

2011-04-02 Thread Jacques Le Roux (JIRA)
Resolve base unit tests not executing and not contributing to code coverage --- Key: OFBIZ-3662 URL: https://issues.apache.org/jira/browse/OFBIZ-3662 Project: OFBiz

[jira] [Closed] (OFBIZ-3662) Resolve base unit tests not executing and not contributing to code coverage

2011-04-02 Thread Jacques Le Roux (JIRA)
and reopen a new one... Thanks to Adrian's expanations Resolve base unit tests not executing and not contributing to code coverage --- Key: OFBIZ-3662 URL: https://issues.apache.org/jira/browse

[jira] [Closed] (OFBIZ-3662) Resolve base unit tests not executing and not contributing to code coverage

2011-03-26 Thread Adrian Crum (JIRA)
and not contributing to code coverage --- Key: OFBIZ-3662 URL: https://issues.apache.org/jira/browse/OFBIZ-3662 Project: OFBiz Issue Type: Bug Components: framework

[jira] Closed: (OFBIZ-3659) Download cobertura code coverage jar so it can be used to compile and execute tests with

2011-02-14 Thread Erwan de FERRIERES (JIRA)
https://issues.apache.org/jira/browse/OFBIZ-3659 Download cobertura code coverage jar so it can be used to compile and execute tests with Key: OFBIZ-3659 URL: https

[jira] Commented: (OFBIZ-3659) Download cobertura code coverage jar so it can be used to compile and execute tests with

2010-08-23 Thread Erwan de FERRIERES (JIRA)
on this issue to be integrated ? Cheers, Download cobertura code coverage jar so it can be used to compile and execute tests with Key: OFBIZ-3659 URL: https://issues.apache.org/jira

Code Coverage

2010-04-30 Thread Scott Gray
I don't suppose anyone has looked at EMMA (http://emma.sourceforge.net/) as an alternative to Cobertura? It has a CPL license which means we could include the jar. Thanks Scott HotWax Media http://www.hotwaxmedia.com smime.p7s Description: S/MIME cryptographic signature

Re: Code Coverage

2010-04-30 Thread Robert Morley
I seem to recall that the issue may be that EMMA is not being actively developed (that isn't to say people don't use it). As you probably know I did some extensions to Adam's work with Cobertura so we could be generating code coverage as part of the build and ultimately publishing those

Re: Code Coverage

2010-04-30 Thread Jacopo Cappellato
There was a thread in this list (with the same subject Code Coverage) between Erwan and Adam: it seems like they discovered that Emma was a dead project... Jacopo On Apr 30, 2010, at 4:28 PM, Scott Gray wrote: I don't suppose anyone has looked at EMMA (http://emma.sourceforge.net

Re: Code Coverage

2010-04-30 Thread Erwan de FERRIERES
, look at this thread : http://ofbiz.135035.n4.nabble.com/Code-coverage-td1559131.html#a1559131 -- View this message in context: http://ofbiz.135035.n4.nabble.com/Code-Coverage-tp2076993p2077028.html Sent from the OFBiz - Dev mailing list archive at Nabble.com.

Re: Code Coverage

2010-04-30 Thread Adam Heath
Scott Gray wrote: I don't suppose anyone has looked at EMMA (http://emma.sourceforge.net/) as an alternative to Cobertura? It has a CPL license which means we could include the jar. As already mentioned in this thread, and previously, the project was last released in 2005. cobertura is

Re: Code Coverage

2010-04-30 Thread Scott Gray
On 1/05/2010, at 3:49 AM, Adam Heath wrote: Scott Gray wrote: I don't suppose anyone has looked at EMMA (http://emma.sourceforge.net/) as an alternative to Cobertura? It has a CPL license which means we could include the jar. As already mentioned in this thread, and previously, the

[jira] Created: (OFBIZ-3662) Resolve base unit tests not executing and not contributing to code coverage

2010-04-09 Thread Bob Morley (JIRA)
Resolve base unit tests not executing and not contributing to code coverage --- Key: OFBIZ-3662 URL: https://issues.apache.org/jira/browse/OFBIZ-3662 Project: OFBiz

[jira] Updated: (OFBIZ-3662) Resolve base unit tests not executing and not contributing to code coverage

2010-04-09 Thread Bob Morley (JIRA)
and not contributing to code coverage --- Key: OFBIZ-3662 URL: https://issues.apache.org/jira/browse/OFBIZ-3662 Project: OFBiz Issue Type: Bug Components

[jira] Commented: (OFBIZ-3659) Download cobertura code coverage jar so it can be used to compile and execute tests with

2010-04-08 Thread Bob Morley (JIRA)
dependency grab; but the compile depends on it ... the only piece I see is it can be shutoff based on a a sysclasspath. What am I missing? Download cobertura code coverage jar so it can be used to compile and execute tests

[jira] Commented: (OFBIZ-3659) Download cobertura code coverage jar so it can be used to compile and execute tests with

2010-04-08 Thread Adrian Crum (JIRA)
- mvn site:site. The normal build does not include metrics. So, we could have something similar (hopefully without Maven) that produces metrics outside a basic build. Download cobertura code coverage jar so it can be used to compile and execute tests

[jira] Created: (OFBIZ-3659) Download cobertura code coverage jar so it can be used to compile and execute tests with

2010-04-07 Thread Bob Morley (JIRA)
Download cobertura code coverage jar so it can be used to compile and execute tests with Key: OFBIZ-3659 URL: https://issues.apache.org/jira/browse/OFBIZ-3659

[jira] Updated: (OFBIZ-3659) Download cobertura code coverage jar so it can be used to compile and execute tests with

2010-04-07 Thread Bob Morley (JIRA)
impact is that when they do a build it will pull down this jar (if possible) and when they run the test container it will instrument and generate code coverage metrics. Download cobertura code coverage jar so it can be used to compile and execute tests

[jira] Commented: (OFBIZ-3659) Download cobertura code coverage jar so it can be used to compile and execute tests with

2010-04-07 Thread Scott Gray (JIRA)
download may not constitute an optional dependency (since the user isn't really given an option). Download cobertura code coverage jar so it can be used to compile and execute tests

[jira] Updated: (OFBIZ-3659) Download cobertura code coverage jar so it can be used to compile and execute tests with

2010-04-07 Thread Adrian Crum (JIRA)
to create code coverage metrics as part of the Ofbiz build process. Licensing restricts distribution of cobertura with Ofbiz, so we have taken the approach to attempt to download it before doing our build so it is available for any container that wants instrumentation turned on (currently

[jira] Commented: (OFBIZ-3659) Download cobertura code coverage jar so it can be used to compile and execute tests with

2010-04-07 Thread Adrian Crum (JIRA)
process, not the build process. Ideally, we should have a new ant target - reports or metrics - that would include this and other code-quality reports. Download cobertura code coverage jar so it can be used to compile and execute tests

[jira] Commented: (OFBIZ-3659) Download cobertura code coverage jar so it can be used to compile and execute tests with

2010-04-07 Thread Bob Morley (JIRA)
anything with that -- this is the ability to compile with Cobertura so that when the test process executes it can instrument and generate the code coverage metrics. We can do some refactoring on the pluggable instrumentation implementation so that it has a separate build process from the main

[jira] Commented: (OFBIZ-3659) Download cobertura code coverage jar so it can be used to compile and execute tests with

2010-04-07 Thread Bob Morley (JIRA)
the download process such that our automated ASF build will do the download (to ultimately get our frequent code coverage metrics) but have it remain manual for developers / end-users? That is really what I would want anyway (with no impact to developers / end-users). Download cobertura code coverage

[jira] Commented: (OFBIZ-3659) Download cobertura code coverage jar so it can be used to compile and execute tests with

2010-04-07 Thread Adrian Crum (JIRA)
things. They download and execute a number of reporting tools that aren't included in the final library. It's pretty slick and extremely convenient. Download cobertura code coverage jar so it can be used to compile and execute tests

[jira] Commented: (OFBIZ-3659) Download cobertura code coverage jar so it can be used to compile and execute tests with

2010-04-07 Thread Scott Gray (JIRA)
you're not going to distribute it and if you don't know that the metrics library is there then how would you know to exclude it? Example: Someone may decide to distribute a precompiled version of OFBiz for the convenience of the community. Download cobertura code coverage jar so it can

[jira] Commented: (OFBIZ-3659) Download cobertura code coverage jar so it can be used to compile and execute tests with

2010-04-07 Thread Scott Gray (JIRA)
in sequence, currently I think it does: svn co ... ant run-install ant run-tests ant docs-all then some other stuff for the nightly builds Download cobertura code coverage jar so it can be used to compile and execute tests

[jira] Commented: (OFBIZ-3659) Download cobertura code coverage jar so it can be used to compile and execute tests with

2010-04-07 Thread Adrian Crum (JIRA)
that downloads and executes a third-party library, then the user will be aware of it. We can even include that bit of information in the ant task's description. Compiling OFBiz != Downloading and executing code metrics. Download cobertura code coverage jar so it can be used to compile

[jira] Commented: (OFBIZ-3659) Download cobertura code coverage jar so it can be used to compile and execute tests with

2010-04-07 Thread Scott Gray (JIRA)
so I guess we're talking about different things. In the patch Compiling OFBiz == Downloading code metrics tools. Download cobertura code coverage jar so it can be used to compile and execute tests

[jira] Commented: (OFBIZ-3659) Download cobertura code coverage jar so it can be used to compile and execute tests with

2010-04-07 Thread Adrian Crum (JIRA)
cobertura code coverage jar so it can be used to compile and execute tests with Key: OFBIZ-3659 URL: https://issues.apache.org/jira/browse/OFBIZ-3659 Project: OFBiz

[jira] Commented: (OFBIZ-3659) Download cobertura code coverage jar so it can be used to compile and execute tests with

2010-04-07 Thread Scott Gray (JIRA)
step though and not automated. The new targets created in the patch look good to me, I just don't want them called from any processing targets. Download cobertura code coverage jar so it can be used to compile and execute tests

[jira] Updated: (OFBIZ-3659) Download cobertura code coverage jar so it can be used to compile and execute tests with

2010-04-07 Thread Bob Morley (JIRA)
. Download cobertura code coverage jar so it can be used to compile and execute tests with Key: OFBIZ-3659 URL: https://issues.apache.org/jira/browse/OFBIZ-3659

[jira] Updated: (OFBIZ-3659) Download cobertura code coverage jar so it can be used to compile and execute tests with

2010-04-07 Thread Bob Morley (JIRA)
[ https://issues.apache.org/jira/browse/OFBIZ-3659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bob Morley updated OFBIZ-3659: -- Attachment: (was: OFBIZ-3659_AutomateDownloadOfCobertura.patch) Download cobertura code coverage

[jira] Updated: (OFBIZ-3659) Download cobertura code coverage jar so it can be used to compile and execute tests with

2010-04-07 Thread Bob Morley (JIRA)
(the last one I manually modified and messed it up). Download cobertura code coverage jar so it can be used to compile and execute tests with Key: OFBIZ-3659 URL: https

[jira] Commented: (OFBIZ-3659) Download cobertura code coverage jar so it can be used to compile and execute tests with

2010-04-07 Thread Bob Morley (JIRA)
at IO because it had an old Cobertura report generated from 2008; but it appears they no longer generate code coverage that way. Commons Lang has code coverage but they use Bamboo/Clover. The one build file that had download-dependency target (it was for junit) was very nice, but all it really

Executing unit tests with Cobertura code coverage metrics

2010-04-06 Thread Bob Morley
target. - executing the ant cobertura-report target will create a very nice set of html reports Here is my question -- when looking at the reports it showed 100% line code coverage in UtilValidate (for example) but this was for 111 lines. Clearly this class has many more lines than that, and when I

Re: Executing unit tests with Cobertura code coverage metrics

2010-04-06 Thread Adam Heath
everything with the ant run-tests target. - executing the ant cobertura-report target will create a very nice set of html reports Here is my question -- when looking at the reports it showed 100% line code coverage in UtilValidate (for example) but this was for 111 lines. Clearly this class has many

Re: Executing unit tests with Cobertura code coverage metrics

2010-04-06 Thread Robert Morley
On Apr 6, 2010, at 1:50 PM, Adam Heath wrote: Bob Morley wrote: Here is my question -- when looking at the reports it showed 100% line code coverage in UtilValidate (for example) but this was for 111 lines. Clearly this class has many more lines than that, and when I opened it up I

Re: Executing unit tests with Cobertura code coverage metrics

2010-04-06 Thread Adrian Crum
Robert Morley wrote: Also, we were talking in the office -- our understanding is that the Cobertura license would restrict Ofbiz from redistribution, but it should be able to use it as part of their build process. Do you think there would be an issue include a target that downloads and

Re: Executing unit tests with Cobertura code coverage metrics

2010-04-06 Thread Scott Gray
On 6/04/2010, at 11:59 AM, Robert Morley wrote: On Apr 6, 2010, at 1:50 PM, Adam Heath wrote: Bob Morley wrote: Here is my question -- when looking at the reports it showed 100% line code coverage in UtilValidate (for example) but this was for 111 lines. Clearly this class has many

Re: Executing unit tests with Cobertura code coverage metrics

2010-04-06 Thread Adam Heath
Scott Gray wrote: On 6/04/2010, at 11:59 AM, Robert Morley wrote: On Apr 6, 2010, at 1:50 PM, Adam Heath wrote: Bob Morley wrote: Here is my question -- when looking at the reports it showed 100% line code coverage in UtilValidate (for example) but this was for 111 lines. Clearly

Code coverage

2010-02-17 Thread Erwan de FERRIERES
Hi all, while taking a new look to code coverage, will it be hard to use emma instead of cobertura ? In this case, we could include the library to OFBiz, as it is under a CPL license. Cheers, -- Erwan de FERRIERES www.nereide.biz

Re: Code coverage

2010-02-17 Thread Adam Heath
Erwan de FERRIERES wrote: Hi all, while taking a new look to code coverage, will it be hard to use emma instead of cobertura ? In this case, we could include the library to OFBiz, as it is under a CPL license. Not super hard, no; I wrote the interface to be extensible with other tools.

Re: Code coverage

2010-02-17 Thread Adam Heath
Adam Heath wrote: Erwan de FERRIERES wrote: Hi all, while taking a new look to code coverage, will it be hard to use emma instead of cobertura ? In this case, we could include the library to OFBiz, as it is under a CPL license. Not super hard, no; I wrote the interface to be extensible

Re: Code coverage

2010-02-17 Thread Adam Heath
Adam Heath wrote: Adam Heath wrote: Erwan de FERRIERES wrote: Hi all, while taking a new look to code coverage, will it be hard to use emma instead of cobertura ? In this case, we could include the library to OFBiz, as it is under a CPL license. Not super hard, no; I wrote the interface

Re: Code coverage

2010-02-17 Thread Erwan de FERRIERES
On 17/02/2010 20:53, Adam Heath wrote: ../.. Actually, emma doesn't look like it's maintained anymore. Last download available was made back in 2005. It's why I saw too... -- Erwan de FERRIERES www.nereide.biz

Re: code coverage report for ofbiz run-tests call

2009-12-11 Thread Scott Gray
Huge tasks are prone to failure, what we really have is a lot of little tasks ahead. If you're writing some code, think about writing the tests that should code along with it. Hopefully it'll become so common place that anyone who doesn't do it will just look silly. Regards Scott HotWax

Re: code coverage report for ofbiz run-tests call

2009-12-11 Thread Jacques Le Roux
Sure Scott, Good recommendation, I will remember... BTW, we could already open an umbrella issue in Jira and add subtask as things go on? I can't see a better way to coordinate this work Jacques From: Scott Gray scott.g...@hotwaxmedia.com Huge tasks are prone to failure, what we really have

Re: code coverage report for ofbiz run-tests call

2009-12-11 Thread Scott Gray
We could but I don't think it would help us track progress very well, there are just too many tests that need to be created. A good start IMO would be to go through every open bug and create a test case that reproduces the problem and attach them as patches to be committed with the fix.

Re: code coverage report for ofbiz run-tests call

2009-12-11 Thread Erwan de FERRIERES
Hi Jacques, inline Le 11/12/2009 08:47, Jacques Le Roux a écrit : What about groovy scripts, are they handled by Cobertura? From what I know Cobertura needs .class files, and for the groovy files, it would mean to compile them first http://docs.codehaus.org/display/GROOVY/Code+Coverage

Re: code coverage report for ofbiz run-tests call

2009-12-11 Thread Scott Gray
On 11/12/2009, at 11:02 PM, Erwan de FERRIERES wrote: But if we just stay on the services, this vould give a great overview of their coverage. As we are in a SOA system, and service is the most important part of the system, we have to be sure they are tested. The easiest way to achieve

Re: code coverage report for ofbiz run-tests call

2009-12-11 Thread Jacques Le Roux
, it would mean to compile them first http://docs.codehaus.org/display/GROOVY/Code+Coverage+with+Cobertura Class are created when they are used and placed in cache. As suggested Scott we could use the wonderful artifact info mechanism to deal with this aspect and also the others (not UI

Re: code coverage report for ofbiz run-tests call

2009-12-11 Thread Adam Heath
Jacques Le Roux wrote: What about groovy scripts, are they handled by Cobertura? And actions in Screens, is it worth do something? I guess checking static structural files like web.xml, ofbiz-component.xml files (and all xml like them, controllers, menus, commonsScreens and such) is not

Re: code coverage report for ofbiz run-tests call

2009-12-11 Thread Adam Heath
/display/GROOVY/Code+Coverage+with+Cobertura No, it needs a byte array that contains class data. I haven't looked inside groovy internals in a bit, but I'm fairly certain that at some point it creates said byte array, seeing as how the jvm requires it to do so.

java dependency hell: was Re: code coverage report for ofbiz run-tests call

2009-12-11 Thread Adam Heath
The coverage stuff I have done for ofbiz is based on the method I did it for webslinger. I wrote a shim to allow for other coverage tools to be used, then wrote a classpath/jar walker to find all classes matching a particular pattern, a dynamic temporary classloader to load the instrumenter, then

Re: java dependency hell: was Re: code coverage report for ofbiz run-tests call

2009-12-11 Thread Adrian Crum
Adam Heath wrote: The coverage stuff I have done for ofbiz is based on the method I did it for webslinger. I wrote a shim to allow for other coverage tools to be used, then wrote a classpath/jar walker to find all classes matching a particular pattern, a dynamic temporary classloader to load

Re: code coverage report for ofbiz run-tests call

2009-12-10 Thread Erwan de FERRIERES
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

Re: code coverage report for ofbiz run-tests call

2009-12-10 Thread Adrian Crum
I am working on unit tests for the framework/base component. I hope to have them committed soon. Thanks for the info! -Adrian 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

Re: code coverage report for ofbiz run-tests call

2009-12-10 Thread Adam Heath
Scott Gray wrote: 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

Re: code coverage report for ofbiz run-tests call

2009-12-10 Thread Scott Gray
On 11/12/2009, at 6:41 AM, Adam Heath wrote: Scott Gray wrote: 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).

Re: code coverage report for ofbiz run-tests call

2009-12-10 Thread Jacques Le Roux
From: Scott Gray scott.g...@hotwaxmedia.com On 11/12/2009, at 6:41 AM, Adam Heath wrote: Scott Gray wrote: 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

Re: code coverage report for ofbiz run-tests call

2009-12-10 Thread Adam Heath
Scott Gray wrote: On 11/12/2009, at 6:41 AM, Adam Heath wrote: Scott Gray wrote: 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

Re: code coverage report for ofbiz run-tests call

2009-12-10 Thread Adrian Crum
Adam Heath wrote: Scott Gray wrote: On 11/12/2009, at 6:41 AM, Adam Heath wrote: Scott Gray wrote: 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

Re: code coverage report for ofbiz run-tests call

2009-12-10 Thread Adam Heath
Adrian Crum wrote: Adam Heath wrote: Scott Gray wrote: On 11/12/2009, at 6:41 AM, Adam Heath wrote: Scott Gray wrote: 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

Re: code coverage report for ofbiz run-tests call

2009-12-10 Thread Adrian Crum
Adam Heath wrote: Adrian Crum wrote: Adam Heath wrote: Scott Gray wrote: On 11/12/2009, at 6:41 AM, Adam Heath wrote: Scott Gray wrote: 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

Re: code coverage report for ofbiz run-tests call

2009-12-10 Thread Scott Gray
On 11/12/2009, at 11:55 AM, Adam Heath wrote: Scott Gray wrote: On 11/12/2009, at 6:41 AM, Adam Heath wrote: Scott Gray wrote: 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

Re: code coverage report for ofbiz run-tests call

2009-12-10 Thread Adam Heath
Adrian Crum wrote: http://www.brainfood.com/ofbiz-coverage/ I like the holiday-themed colors. It would be cool if incomplete coverage could be displayed as partially eaten sugar cookies. That's standard cobertura scheme.

Re: code coverage report for ofbiz run-tests call

2009-12-10 Thread Adam Heath
Scott Gray wrote: Note that framework/base has almost 100% coverage. But that's a bad thing, because it's not explicitly testing it; all that code just happens to be utilized during the rest of the test run. Of course explicitly testing framework/base would be much better but why is the

Re: code coverage report for ofbiz run-tests call

2009-12-10 Thread Scott Gray
On 11/12/2009, at 12:34 PM, Adam Heath wrote: Scott Gray wrote: Note that framework/base has almost 100% coverage. But that's a bad thing, because it's not explicitly testing it; all that code just happens to be utilized during the rest of the test run. Of course explicitly testing

Re: code coverage report for ofbiz run-tests call

2009-12-10 Thread Adam Heath
Scott Gray wrote: Additionally, just because a line has been noted in cobertura, doesn't mean all variations have been tested. Consider the case that some condition is doing some kind of pattern match, or looking at Collection.contains or Map.containsKey. It's much simpler to verify that

Re: code coverage report for ofbiz run-tests call

2009-12-10 Thread Erwan de FERRIERES
Now the point would be to show the coverage of the simple methods and also, maybe in sometime, the selenium coverage. What would be great is finding a way to indicate which services are tested, and then display it in the webtools. This won't give an information as precise as cobertura but

Re: code coverage report for ofbiz run-tests call

2009-12-10 Thread Jacques Le Roux
What about groovy scripts, are they handled by Cobertura? And actions in Screens, is it worth do something? I guess checking static structural files like web.xml, ofbiz-component.xml files (and all xml like them, controllers, menus, commonsScreens and such) is not necessary? Jacques From:

Re: code coverage report for ofbiz run-tests call

2009-12-10 Thread Jacques Le Roux
From: Adam Heath doo...@brainfood.com Additionally, the way the classloaders are constructed is a bit odd. The bootstrap loader only has ofbiz.jar. The code then creates a classloader will *all* jars in base/lib, recursively. After the containers and components are started, yet another

Re: code coverage report for ofbiz run-tests call

2009-12-10 Thread Jacques Le Roux
A huge task ahead... Jacques From: Adam Heath doo...@brainfood.com Scott Gray wrote: Additionally, just because a line has been noted in cobertura, doesn't mean all variations have been tested. Consider the case that some condition is doing some kind of pattern match, or looking at

code coverage report for ofbiz run-tests call

2009-12-09 Thread Adam Heath
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

Re: code coverage report for ofbiz run-tests call

2009-12-09 Thread Tim Ruppert
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

Re: code coverage report for ofbiz run-tests call

2009-12-09 Thread Scott Gray
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

Re: code coverage and cpl 1.0/apl 2.0 compatibility

2008-09-03 Thread Adrian Crum
I'm not clear on what you're asking. I use code analysis here, but it's not something I would consider including in the project. Why would the tool's license be an issue? -Adrian Adam Heath wrote: I'm looking at various code coverage tools; there are very few free ones available. I've

Re: code coverage and cpl 1.0/apl 2.0 compatibility

2008-09-03 Thread David E Jones
license be an issue? -Adrian Adam Heath wrote: I'm looking at various code coverage tools; there are very few free ones available. I've personally used cobertura; it's gpl v2.0(1), so not compatible. clover is what is installed for use by apache projects; but it's actually non-free, so I'm

code coverage and cpl 1.0/apl 2.0 compatibility

2008-09-02 Thread Adam Heath
I'm looking at various code coverage tools; there are very few free ones available. I've personally used cobertura; it's gpl v2.0(1), so not compatible. clover is what is installed for use by apache projects; but it's actually non-free, so I'm not even going to consider it. emma is cpl 1.0(2

Cobertura(code-coverage)

2007-10-15 Thread Adam Heath
I plan on integrating cobertura(1)(a code-coverage tool) into ofbiz. This is so we can see what code is actually used during a test run. I'll do this by pre-compiling all build/lib/*.jar into build/cobertura/*.jar, then, during the test run, I'll load the cobertura jars first. An extension