https://github.com/cqse/teamscale-azuredevops-extension
Plugin for Azure DevOps that provides: Extension for the WorkItems pages to show a TestGap badge, Pipeline Task to upload coverage, findings, and other reports to Teamscale
https://github.com/cqse/teamscale-azuredevops-extension
Last synced: 5 months ago
JSON representation
Plugin for Azure DevOps that provides: Extension for the WorkItems pages to show a TestGap badge, Pipeline Task to upload coverage, findings, and other reports to Teamscale
- Host: GitHub
- URL: https://github.com/cqse/teamscale-azuredevops-extension
- Owner: cqse
- License: apache-2.0
- Created: 2019-03-29T13:30:25.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-29T18:56:24.000Z (6 months ago)
- Last Synced: 2024-10-29T20:46:03.555Z (6 months ago)
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=CQSEGmbH.teamscale-azure-devops-plugin
- Size: 96.1 MB
- Stars: 3
- Watchers: 12
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Plugin for Azure DevOps that provides
- Work Item integration that shows Findings Churn and Test Gap badges for each work item
- Dashboard Widget that shows Findings Churn and Test Gap badges for the project
- Pipeline Task to upload coverage, findings, and other reports to Teamscale (located in [reportUploadTask](./reportUploadTask), targets NodeJS)# Building
We recommend editing with VS Code.
To compile the code:
```bash
npm run build
```To package as a .vsix:
```bash
npm run package
```# Testing
## Unit Tests
To run all unit tests:
```bash
npm test
```## Manual Tests
Please refer to [our wiki](https://cqse.atlassian.net/wiki/spaces/TS/pages/3035267078/K2+Azure+DevOps+Extension+Testing).
# Publishing
To publish the extension publicly, first obtain an access token for our Azure DevOps space.
Log into , then click _User settings_ (icon in the navigation bar) > _Personal access tokens_.
Create a token with these settings:- Organization: *All accessible organizations*
- all permissions for Marketplace (you need to click _show all scopes_ for this to show up)Then, create a file called `token` containing this access token in the root directory of the repository.
Before publishing, please update the CHANGELOG.md file and choose a proper version number based on semantic versioning.
Then, enter that number in both `package.json`, `vss-extension.json`, `reportUploadTask/package.json` and `reportUploadTask/task.json` in the corresponding `version` fields.```bash
npm run publish
```On linux you might have to replace every occurrence of `$(npm bin)/tsc` and `$(npm bin)/tfx` in package.json as well as
reportUploadTask/package.json with the local location of `tsc` and `tfx`. If the location is part of your `PATH`
removing `$(npbm bin)/` should suffice.This will make the built package publicly available on the Marketplace.
# Distributed Binaries
We distribute both [teamscale-upload](https://github.com/cqse/teamscale-upload) and CodeCoverage.exe with this extension to make it work "out of the box" without additional dependencies.
Use [fetch_dependencies.sh](./reportUploadTask/fetch_dependencies.sh) to update the CodeCoverage.exe in the repo.