I managed to get it sorted passing lib.dir in build.xml as system property to the tests.
In the test, I'm trying to create a CL without parent CL. I can only use jar files for
this as the classes directory for the IDE could be different depending on the person.
Alternatively, I guess I could maybe use javassist to generate something on the fly.
The test did not work when the test was executed from a different directory to the JBC
root one, for example for CC. By passing the lib dir as system property, I can check
whether it's set.
If set, use the system property, quite likely build.xml run. If not set, quite likely IDE
run which allows lib dir to be hardcoded.
It's a bit hacky, I admit, any better ideas?
Galder Zamarreño
Sr. Software Maintenance Engineer
JBoss, a division of Red Hat
IT executives: Red Hat still #1 for value
http://www.redhat.com/promo/vendor/
-----Original Message-----
From: jbosscache-dev-bounces(a)lists.jboss.org
[mailto:jbosscache-dev-bounces@lists.jboss.org] On Behalf Of Galder Zamarreno
Sent: 28 December 2006 13:23
To: Manik Surtani; Hany Mesha
Cc: jbosscache-dev(a)lists.jboss.org
Subject: RE: [jbosscache-dev] JBCACHE-905 - code coverage for 1.4.1
I added this unit test. I'm working on the fix :)
Galder Zamarreño
Sr. Software Maintenance Engineer
JBoss, a division of Red Hat
IT executives: Red Hat still #1 for value
http://www.redhat.com/promo/vendor/
-----Original Message-----
From: jbosscache-dev-bounces(a)lists.jboss.org
[mailto:jbosscache-dev-bounces@lists.jboss.org] On Behalf Of Manik Surtani
Sent: 19 December 2006 11:32
To: Hany Mesha
Cc: jbosscache-dev(a)lists.jboss.org
Subject: Re: [jbosscache-dev] JBCACHE-905 - code coverage for 1.4.1
Looking at
http://cruisecontrol.jboss.com/cc/artifacts/jboss-cache-
testsuite-140/20061219021805/results/index.html
I only see one test failing
(org.jboss.cache.marshall.RedeploymentEmulationTest) but I suspect
this has to do with a bug in the test's setup and teardown, since
when run on its own, it passes.
--
Manik Surtani
Lead, JBoss Cache
JBoss, a division of Red Hat
Email: manik(a)jboss.org
Telephone: +44 7786 702 706
MSN: manik(a)surtani.org
Yahoo/AIM/Skype: maniksurtani
On 19 Dec 2006, at 04:08, Hany Mesha wrote:
Hi all,
I've run Clover against Branch_JBossCache_1_4_0 and the initial
generated report and statistics are posted on the wiki at
http://wiki.jboss.org/wiki/Wiki.jsp?
page=JBossCache14xCodeCoverageAnalysis
We have an overall coverage of 89.6 % which is pretty good number for
initial report considering that there are test cases failing. If those
test cases get fixed, I'll be able to produce more accurate report and
therefore I'll be able to identify areas that are not covered in the
test suite and write test cases to cover those in the next few days
before releasing 1.4.1 GA.
Please let me know if you're working on fixing one or more test
case in
the 1.4 branch and when you think you'll check that fix in?
Thanks,
-Hany
Hany M. Mesha
Sr. Software Engineer, Consultant
Novell Identity Management Engineering
Toronto, Canada
hmesha(a)novell.com
Mobile: 416-456-6945
skype: hanymesha
Novell, Inc.
SUSE® Linux Enterprise 10
Your Linux is ready
http://www.novell.com/linux
_______________________________________________
jbosscache-dev mailing list
jbosscache-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbosscache-dev
_______________________________________________
jbosscache-dev mailing list
jbosscache-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbosscache-dev
_______________________________________________
jbosscache-dev mailing list
jbosscache-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbosscache-dev