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_modulesclean-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.jsontest- 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 buildTo build the Azure Devops task with yarn:
yarn build:ci
yarn build-az-taskThe 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
.envfile.AZURE_PERSONAL_ACCESS_TOKENis a valid Personal Access Token (PAT).ORG_URLis the URL for your organization: e.g.https://dev.azure.com/cool-coPROJECTis your project name. e.g.cool-codefrom 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