Re: [Carbon-dev] Adding emma instrumentation method to ServerUtils in carbon/core/integration

2011-03-18 Thread Afkham Azeez
See whether http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html has anything you can use. On Fri, Mar 18, 2011 at 5:13 PM, Thilini Ishaka wrote: > > > On Thu, Mar 17, 2011 at 9:34 PM, Chamara Silva wrote: > >> To do this we will overload setUpCarbonHome method in ServerUtils cl

Re: [Carbon-dev] Adding emma instrumentation method to ServerUtils in carbon/core/integration

2011-03-18 Thread Thilini Ishaka
On Thu, Mar 17, 2011 at 9:34 PM, Chamara Silva wrote: > To do this we will overload setUpCarbonHome method in ServerUtils class > with jar instrumentation code. Added instrumentation step inside setUpCarbonHome operation after the server zip extraction process. But when running it using maven

Re: [Carbon-dev] Adding emma instrumentation method to ServerUtils in carbon/core/integration

2011-03-17 Thread Senaka Fernando
On Thu, Mar 17, 2011 at 10:04 PM, Thilini Ishaka wrote: > > > On Thu, Mar 17, 2011 at 9:34 PM, Chamara Silva wrote: > >> To do this we will overload setUpCarbonHome method in ServerUtils class >> with jar instrumentation code. > > > +1 > +1, but make this something optional (behind a system pro

Re: [Carbon-dev] Adding emma instrumentation method to ServerUtils in carbon/core/integration

2011-03-17 Thread Thilini Ishaka
On Thu, Mar 17, 2011 at 9:34 PM, Chamara Silva wrote: > To do this we will overload setUpCarbonHome method in ServerUtils class > with jar instrumentation code. +1 > Thanks, > Chamara > > On Thu, Mar 17, 2011 at 9:01 PM, Afkham Azeez wrote: > >> Excellent! So we can combine this somehow into

Re: [Carbon-dev] Adding emma instrumentation method to ServerUtils in carbon/core/integration

2011-03-17 Thread Afkham Azeez
Feel free to refactor or change that code. We may even have to throw it away and build something else, since that was a quick prototype. On Thu, Mar 17, 2011 at 9:34 PM, Chamara Silva wrote: > To do this we will overload setUpCarbonHome method in ServerUtils class > with jar instrumentation code

Re: [Carbon-dev] Adding emma instrumentation method to ServerUtils in carbon/core/integration

2011-03-17 Thread Chamara Silva
To do this we will overload setUpCarbonHome method in ServerUtils class with jar instrumentation code. Thanks, Chamara On Thu, Mar 17, 2011 at 9:01 PM, Afkham Azeez wrote: > Excellent! So we can combine this somehow into the core/integration. > > > On Thu, Mar 17, 2011 at 8:57 PM, Charitha Kank

Re: [Carbon-dev] Adding emma instrumentation method to ServerUtils in carbon/core/integration

2011-03-17 Thread Thilini Ishaka
On Thu, Mar 17, 2011 at 8:39 PM, Afkham Azeez wrote: > Is there a way to instrument the classes after extracting the carbon.zip? > ya. I think we need to do something like; Runtime.getRuntime().exec("xargs -n 1 $JAVA_HOME/jre/bin/java -cp emma.jar emma instr -m overwrite -cp < jarlist

Re: [Carbon-dev] Adding emma instrumentation method to ServerUtils in carbon/core/integration

2011-03-17 Thread Afkham Azeez
Excellent! So we can combine this somehow into the core/integration. On Thu, Mar 17, 2011 at 8:57 PM, Charitha Kankanamge wrote: > On Thu, Mar 17, 2011 at 8:39 PM, Afkham Azeez wrote: > >> Is there a way to instrument the classes after extracting the carbon.zip? >> > > > Instrumentation is done

Re: [Carbon-dev] Adding emma instrumentation method to ServerUtils in carbon/core/integration

2011-03-17 Thread Charitha Kankanamge
On Thu, Mar 17, 2011 at 8:39 PM, Afkham Azeez wrote: > Is there a way to instrument the classes after extracting the carbon.zip? > Instrumentation is done only after extracting the carbon.zip. For that we use "instr" (Emma's offline class instrumentor [1]) Instrumentation is a simple process.

Re: [Carbon-dev] Adding emma instrumentation method to ServerUtils in carbon/core/integration

2011-03-17 Thread Afkham Azeez
Is there a way to instrument the classes after extracting the carbon.zip? On Thu, Mar 17, 2011 at 7:30 PM, Thilini Ishaka wrote: > Hi, > > We have faced a problem when finding code coverage using emma after moving > test framework to the trunk. > We have a *ServerUtils* class inside *core/integr

[Carbon-dev] Adding emma instrumentation method to ServerUtils in carbon/core/integration

2011-03-17 Thread Thilini Ishaka
Hi, We have faced a problem when finding code coverage using emma after moving test framework to the trunk. We have a *ServerUtils* class inside *core/integration* module and what it does is, extract the product zip, copy it to a temp location, start and stop the server. As the first step of emma