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 code coverage, we need to instrument jars inside
plugins folder using "xargs -n 1 $JAVA_HOME/jre/bin/java -cp emma.jar emma
instr -m overwrite -cp < jarlist.txt".
Thereafter we need to run tests. Each test class extends from TestTemplete
which is a sub class of ServerUtils. Therefore when running a test, each and
every time it executes *startServerUsingCarbonZip() * in ServerUtils.
All the tests should be run on a server which has instrumented jars. The
problem is, we loose the already instrumented jars once running a test.

Our suggestion is to add this instrumentation step to the *ServerUtils *before
the sever starts operation.

Kindly welcome feedbacks on this.

Thanks

Regards,



-- 
Thilini Ishaka
WSO2 Inc
_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to