From: J <mc...@gm...> - 2014-08-19 00:50:58
|
On Aug 18, 2014 1:28 PM, "Srikkanth Sundararajan" <sri...@gm...> wrote: > > Hi, > > I'm working in an IT organization and we started using Cobertura for identifying code coverage by out test cases. Following is our use case and we are trying to see if Cobertura can be helpful. > > Note: There are around 10,000 test cases available in our product. > 1. Automate a system where run each test case(T1,T2,T3...) against the product instrumented through cobertura and record the code coverage(something like T1 => ClassA => methodB => Line #5 , T2 => ClassB => MethodC => Line #10, and so on...) in a separate database. > > 2. Using the recorded information in the database, for any change made in the product code, we would identify what test cases would be impacted. > > With the above use case, I would like to know if Cobertura provides a way to retrieve the information about classes,methods and line #s hit after running a test case ? Is there an API that could be used to get that info? or Is there an internal database that could be queried? > The reporting phase can produce XML output that has all the information you need. The format is pretty obvious even if you don't know how to read the DTD. You can write a python program that parses it using lxml, convert it to your own schema and push it to the database of your choice. the previous two questions then devolve into database queries. > We appreciate any suggestions. > > Thanks, > Srikkanth > > ------------------------------------------------------------------------------ > > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > |