screwdriver-screwdriver-coverage-base
v1.0.0
Published
Base class defining the interface for coverage upload implementations
Downloads
1
Readme
Coverage Base
Base class defining the interface for coverage upload implementations
Usage
npm install screwdriver-screwdriver-coverage-baseInterface
This is an interface for uploading code coverage results from a Screwdriver build to a code coverage server.
getAccessToken
Required Parameters
| Parameter | Type | Description | | :------------- | :---- | :-------------| | buildCredentials | Object | Information stored in the build JWT token |
Expected Outcome
The getAccessToken function should resolve a Promise with an access token that build can use to talk to the code coverage server.
getUploadCoverageCmd
Expected Outcome
The getUploadCoverageCmd function should resolve a Promise with a string of shell commands to upload code coverage results.
Extending
To extend the base class, the functions to override are:
_getUploadCoverageCmd_getAccessToken
Testing
npm testRelated links
See the coverage-bookend
License
Code licensed under the BSD 3-Clause license. See LICENSE file for terms.
