1.0.0 • Published 6 years ago

screwdriver-screwdriver-coverage-base v1.0.0

Weekly downloads
6
License
BSD-3-Clause
Repository
github
Last release
6 years ago

Coverage Base

Version Downloads Build Status Open Issues Dependency Status License

Base class defining the interface for coverage upload implementations

Usage

npm install screwdriver-screwdriver-coverage-base

Interface

This is an interface for uploading code coverage results from a Screwdriver build to a code coverage server.

getAccessToken

Required Parameters
ParameterTypeDescription
buildCredentialsObjectInformation 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 test

Related links

See the coverage-bookend

License

Code licensed under the BSD 3-Clause license. See LICENSE file for terms.