On Fri, Jan 16, 2015 at 1:48 PM, Amalka Subasinghe <[email protected]> wrote:
> *Steps to generate the code coverage report for AF* > [NOTE: did all the steps using afpuppet user] > > 1. Create a folder [eg: emma] > > 2. Copy the following files to the emma folder > - emma.jar > - jarlist file (create a file which contains the appfactory jars we want > to use in code coverage) see the attachment > > 3. Stop the appfactory > > 4. Execute the following command to instrument the jars, it will create > coverage.em file in the emma folder > java -cp emma.jar emma instr -m overwrite -cp @jarlist > > 5. Copy emma.jar file to the <APPFACTORY_HOME>/repository/component/lib > > 6. Start the appfactory and run the tests > > 7. Stop the appfactory (now you can see the coverage.ec file in the emma > folder) > > 8. Generate the report executing following command > java -cp emma.jar emma report -r html -in coverage.em -in coverage.ec > > Now you can find the coverage at emma/coverage/index.html > > Thanks > Amalka > > > > > > On Wed, Jan 14, 2015 at 12:17 PM, Amalka Subasinghe <[email protected]> > wrote: > >> Hi all, >> >> Currently I'm trying to $subject. Since AF integration tests runs in >> platform mode, we can't generate code coverage report via our existing test >> framework. >> >> I found a blog we can use for this. [1] >> as specified in the blog when I execute the xargs -n 1 >> $JAVA_HOME/jre/bin/java -cp emma.jar emma instr -m overwrite -cp < >> jarlist.txt. >> It changes file permissions on appfactory jars, because of that I can't >> up the appfactory setup to run the tests. >> >> Does anyone have ideas on how to do this? >> >> [1] >> http://charithaka.blogspot.com/2009/05/run-time-code-coverage-using-emma.html >> >> Thanks >> Amalka >> >> > >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
