Azure DevOps Test Plans Service
@gmangiapelo/wdio-azure-devops-service is a 3rd party package, for more information please see GitHub | npm
Publishes WebdriverIO results on Azure DevOps Test Plans.
Core features:
- Support for Jasmine/Jest/Mocha and Cucumber runtime frameworks
- Test results are aggregated under the same test run if you are executing more spec(test) files and they are belongs to the same suite
- Results are reported immediately after single test execution (real-time reporting)
- Test run is closed after last spec(test) file has been finished
- Multi suite support
Installation
Install this module locally with the following command to be used as a (dev-)dependency:
npm install --save @gmangiapelo/wdio-azure-devops-service
npm install --save-dev @gmangiapelo/wdio-azure-devops-service
Instructions on how to install WebdriverIO
can be found here.
Usage
wdio-azure-devops-service supports NodeJS 8 or higher
wdio-azure-devops-service supports commonjs and esm
Configuration
Since @gmangiapelo/wdio-azure-devops-service
is a service, you can set it up in your wdio.conf.js
file as follows
import AzureDevopsService from "@gmangiapelo/wdio-azure-devops-service";
// wdio.conf.js
exports.config = {
// ...
// =====
// Setup
// =====
services: [
[
AzureDevopsService,
{
pat: '3qaPw0PnOyQ6mb8gwN7n9aIQtccn8FtsZ2s1tSIzo6yAt6eK9BInJQGJ99BDACAAAAAu9TDCAAASAZDO2Onn',
organizationUrl: 'https://dev.azure.com/gianlucamangiapelo',
projectId: '8b3c68ac-f69d-41c6-bbad-921d8bae9819',
planId: 263072,
suiteId: 263073,
caseIdRegex: '@?[ref](https://github.com/gianlucamangiapelo/wdio-azure-devops-service/blob/main/\\d+)',
runName: 'FE regression tests for TestPlan',
},
],
],
// ...
};