Migrated from Gitlab to Github as part of https://nhsd-jira.digital.nhs.uk/browse/CAAS-1928
This package can be imported into your project to generate a test and code coverage report.
To use this package in your project place "@caas/test-report-tool"
into your projects package.json dependencies.
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
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
andpnpm 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