On Jun 30, 2008, at 1:43 PM, Adam Heath wrote:
Jacopo Cappellato wrote:
Hi Adam,
On Jun 30, 2008, at 6:21 PM, Adam Heath wrote:
Attached you will find SequenceUtil.java; I've modified it to be
non-blocking. I've done "ant run-install", with no problems, but
have *not* yet run any test cases.
I'm sending it here(to this list) first, before checking it in, as
this is a radical departure from simple programming practices, and
would like others to discuss if I should do this in other places.
thanks for your work and yes, please, add this code to Jira to make
it easier to browse and comment. Also, before checking it in,
please run some test cases.
Well, I could, but not without doing other stuff first.
As part of the official build process for webslinger(which means
uploading a debian package to our local repo), I *always* run it's
test cases, and they *must* pass. And, as part of that, I always
run them under cobertura, a code-coverage tool. I am currently at
41% coverage, with some parts over 90%.
I'd like to add such support to ofbiz, but can't use cobertura(it's
gpl). I'm open for suggestions.
Do you really need a code coverage tool in order to do tests? I guess
I'm not quite sure what you're getting at with this question...
There are quite a few potential tools for testing these things, but a
JUnit class or a Service Engine service run as a test are nice options.
-David