code coverage service plugin for form8ion
- Define a coverage status badge to communicate current coverage details
- Link from the status badge to further details on the Codecov site
- Migrate from the legacy node uploader
to the modern uploader
- Currently supports the following CI Providers:
$ npm install @form8ion/codecov --saveimport {packageManagers} from '@form8ion/javascript-core';
import {scaffold, lift} from '@form8ion/codecov';(async () => {
await scaffold();
await lift({
projectRoot: process.cwd(),
packageManager: packageManagers.NPM,
vcs: {
host: 'github',
owner: 'foo',
name: 'bar'
}
});
})();The scaffolder of this plugin is currently a no-op since the work is all done as part of the lifting process
Migrates Codecov details from legacy conventions to modern conventions.
Takes a single options object as an argument, containing:
path to the root of the project
chosen package manager to be used for the project
hoststring (required) VCS hosting serviceownerstring (required) account name on the host service for the repositorynamestring (required) repository name
$ nvm install
$ npm install$ npm test