An Azure Devops pipeline task to associate test method names to work items.
Contents:
- TypeScript 4.0
- ESLint
- Jest
- Prettier
- Reproducible environments with Volta
- install Volta
- .editorconfig for consistent file format
- Dependabot updates
- KodiakHQ automerges
build
- compile TSbuild:watch
- interactive watch mode to automatically transpile source filescheckcommit
- validate commit messageclean
- remove coverage data, Jest cache and transpiled files,clean-deps
- removenode_modules
clean-generated
- remove coverage and build directories and filesclean-logs
- remove log filescommit
- start commitformat
- format fileslint
- lint source files and tests,nuke
- clean everythingsort-pj
- sortpackage.json
test
- run tests,test:watch
- interactive watch mode to automatically re-run testsmanual-run
- invoke the work item association api locally
To build the project with yarn:
yarn install
yarn build
To build the Azure Devops task with yarn:
yarn build:ci
yarn build-az-task
The Task build will output a .vsix
file that can be uploaded to Azure Devops
To invoke the task locally, you will need to:
- Copy the sample.env and rename it
.env
- Populate the values blank values in your new
.env
file.AZURE_PERSONAL_ACCESS_TOKEN
is a valid Personal Access Token (PAT).ORG_URL
is the URL for your organization: e.g.https://dev.azure.com/cool-co
PROJECT
is your project name. e.g.cool-code
from the URLhttps://dev.azure.com/cool-co/cool-code
(not the full URL)
- Lastly, you need a valid build id to execute against. The build id is an integer value that
can be found with the predefined variable
$(Build.BuildId)
. - Run
yarn build:ci
- Execute the task:
yarn manual-run SOME_BUILD_ID
To run tests with yarn:
yarn test