Giter Site home page Giter Site logo

cobertura2clover's People

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cobertura2clover's Issues

Convert cobertura coverage report to clover

Project this is forked from just serves as an example. The best bet would be to use something like lxml and xmltodict to analyze and parse the source files and construct the output.

Relevant files: clover xsd schema, cobertura dtd, a sample cobertura report and a minimal sample clover report.

Since both cobertura and clover are very java centric we can only use a minimal subset of all the features but still enough to give an overview of coverage / lines of code over time. More support can then be added later.

For the moment to get up and running we need the following basic steps:

  • Analyze source cobertura
  • Generate clover.xml, necessary attributes:
    • clover: clover version, can be fixed on 3.3
    • generated and timestamp: copy from cobertura timestamp
    • packages: can be fixed on 1
    • files: count of the number of class nodes in cobertura
    • classes: for the sake of simplicity idem as above
    • complexity: can be fixed on 0
    • loc: lines of code, count number of line nodes in cobertura
    • ncloc: non comment lines of code, for the sake of simplicity idem as above
    • elements: count number of line nodes in cobertura
    • statements: for the sake of simplicity idem as above
    • coveredelements: count number of line nodes in cobertura with hits>=1 attribute
    • coveredstatements: for the sake of simplicity idem as above
    • coveredconditionals, conditionals, methods, coveredmethods: for the sake of simplicity can be fixed on 0

Command line tool should enable to choose source and destination files.

License

Hi, as far as I can tell, this project has no license associated with it? Could you please add one?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.