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 <cham...@wso2.com> wrote: > 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 <az...@wso2.com> wrote: > >> Excellent! So we can combine this somehow into the core/integration. >> >> >> On Thu, Mar 17, 2011 at 8:57 PM, Charitha Kankanamge >> <chari...@wso2.com>wrote: >> >>> On Thu, Mar 17, 2011 at 8:39 PM, Afkham Azeez <az...@wso2.com> 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. We give the necessary jars which are >>> included in CARBON_HOME/repository/plugins directory as the instrumentation >>> path for "instr" utility. It adds bytecode instrumentation to all classes >>> found in repository/component/plugins >>> >>> [1]http://emma.sourceforge.net/reference/ch02s03.html >>> >>> >>> >>>> >>>> On Thu, Mar 17, 2011 at 7:30 PM, Thilini Ishaka <thil...@wso2.com>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/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 >>>>> >>>>> >>>> >>>> >>>> -- >>>> *Afkham Azeez* >>>> Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com >>>> , >>>> * >>>> * >>>> *Member; Apache Software Foundation; >>>> **http://www.apache.org/*<http://www.apache.org/> >>>> * >>>> email: **az...@wso2.com* <az...@wso2.com>* cell: >>>> <%2B94%2077%203320919><%2B94%2077%203320919><%2B94%2077%203320919>+94 >>>> 77 3320919 >>>> blog: **http://blog.afkham.org* <http://blog.afkham.org>* >>>> twitter: >>>> **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> >>>> * >>>> linked-in: **http://lk.linkedin.com/in/afkhamazeez* >>>> * >>>> * >>>> *Lean . Enterprise . Middleware* >>>> >>>> >>>> _______________________________________________ >>>> Carbon-dev mailing list >>>> Carbon-dev@wso2.org >>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>>> >>>> >>> >> >> >> -- >> *Afkham Azeez* >> Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com, >> * >> * >> *Member; Apache Software Foundation; >> **http://www.apache.org/*<http://www.apache.org/> >> * >> email: **az...@wso2.com* <az...@wso2.com>* cell: <%2B94%2077%203320919>+94 >> 77 3320919 >> blog: **http://blog.afkham.org* <http://blog.afkham.org>* >> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> >> * >> linked-in: **http://lk.linkedin.com/in/afkhamazeez* >> * >> * >> *Lean . Enterprise . Middleware* >> >> >> _______________________________________________ >> Carbon-dev mailing list >> Carbon-dev@wso2.org >> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >> >> > > > -- > Suminda Chamara Silva > WSO2 Inc. > Mobile: +94 718 302858 > blog: http://chamaras.blogspot.com > -- *Afkham Azeez* Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com, * * *Member; Apache Software Foundation; **http://www.apache.org/*<http://www.apache.org/> * email: **az...@wso2.com* <az...@wso2.com>* cell: +94 77 3320919 blog: **http://blog.afkham.org* <http://blog.afkham.org>* twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware*
_______________________________________________ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev