You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

coverageval

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coverageval

0.1
bundlerRubygems
Version published
Maintainers
1
Created
Source

Coverage Validator

This is a gem which will read a coverage xml file and either exit with a status of 0 if the coverage meets the target

How to use?

coverageval <coverage file> <coverage threshold>

Example:

coverageval coverage.xml 0.9

Coverage file format

The only currently support coverage file is:

<?xml version="1.0" ?>
<!DOCTYPE coverage
  SYSTEM 'http://cobertura.sourceforge.net/xml/coverage-03.dtd'>  
<coverage branch-rate="0" line-rate="0.92" timestamp="1421847509594" version="3.7.1">
  <packages>
    <package branch-rate="0" complexity="0" line-rate="0.92" name="">
      <classes>
         <class branch-rate="0" complexity="0" filename="propertyfrontend/__init__.py" line-rate="0.8387" name="propertyfrontend/__init__">
           <methods/>
           <lines>
             <line hits="1" number="1"/>
             <line hits="0" number="2"/>
             ...
           </lines>
        </class>
      </classes>
    </package>
  </packages>
</coverage>

FAQs

Package last updated on 21 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts