Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

force-coverage

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

force-coverage

Force.com test coverage tooling

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
27
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

Force.com test coverage tooling

npm version Coverage Status Build Status

Installation

npm install -g force-coverage

Coverage Auto-Inflation

Disclaimer: Inflated coverage goes against Salesforce development best practices and should be avoided 99% of the time.

force-inflate -u <username> -p <password><security token> -l <login url>

Run org tests and calculates the remaining lines that must otherwise be covered to reach target % overall coverage. CoverageInflation is generated to contain the calculated amount of inflation, which is then deployed. The class is compiled against API v27.0 so that it may contain its own test method.

Inflation formula:

(linesCovered - totalLines * targetPercentage) / (targetPercentage - 1) = inflatedLines

Re-run as needed (i.e. when actual coverage increases) to decrease/eliminate the inflation.

When overall coverage exceeds the target % without inflation, CoverageInflation is removed from the org.

Target coverage %

force-inflate ... --target 0.8

Default: 0.76

Keywords

FAQs

Package last updated on 31 May 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc