1.0.0 • Published 8 years ago
screwdriver-screwdriver-coverage-base v1.0.0
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:
1. _getUploadCoverageCmd
2. _getAccessToken
Testing
npm testRelated links
See the coverage-bookend
License
Code licensed under the BSD 3-Clause license. See LICENSE file for terms.
1.0.0
8 years ago