@diroussel/test-report-tool
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

test-report-tool

Migrated from Gitlab to Github as part of https://nhsd-jira.digital.nhs.uk/browse/CAAS-1928

Description

This package can be imported into your project to generate a test and code coverage report.

Installation

To use this package in your project place "@caas/test-report-tool" into your projects package.json dependencies.

Usage

Once you have gathered coverage from your projects unit tests using the --coverage flag, execute generate-publish-allure-report-and-upload-coverage-report from within the test-report-tool, passing in three parameters:

  • Test type, e.g. unit
  • Branch and version name
  • CI job Id

Publishing

To publish the package to CAAS AWS Code Artifact manually:

  • Make sure you are on the main branch, and all necessary changes have been merged.
  • Increment the version number in the main package.json - if the version number isn't changed before publication, it will cause breaking changes into any repo which uses this package
  • run a pnpm install and pnpm build to make sure that everything is set up correctly
  • Log in to the AWS management account by running: export AWS_PROFILE=caas-pl-mgmt aws sso login
  • Set the AWS Code Artifact variables by running: aws codeartifact login --tool npm --repository private-staging --domain caas --domain-owner 680509669821
  • Then run npm publish

Readme

Keywords

none

Package Sidebar

Install

npm i @diroussel/test-report-tool

Weekly Downloads

0

Version

1.2.2

License

AGPL-3.0

Unpacked Size

172 kB

Total Files

73

Last publish

Collaborators

  • diroussel