import {WebdriverIOConfig} from '@serenity-js/webdriverio/lib/adapter'
public interface | source

WebdriverIOConfig

WebdriverIO configuration object with Serenity/JS-specific additions.

Extends:

Options.TestRunner → WebdriverIOConfig

Examples:

WebdriverIO with Serenity/JS and Cucumber

 import { ConsoleReporter } from '@serenity-js/console-reporter';
 import { ArtifactArchiver } from '@serenity-js/core';
 import { SerenityBDDReporter } from '@serenity-js/serenity-bdd';
 import { WebdriverIOConfig } from '@serenity-js/webdriverio';

 export const config: WebdriverIOConfig = {

   framework: '@serenity-js/webdriverio',

   serenity: {
       runner: 'cucumber',
       crew: [
           ConsoleReporter.forDarkTerminals(),
           new SerenityBDDReporter(),
           ArtifactArchiver.storingArtifactsAt('./target/site/serenity'),
       ]
   },

   cucumberOpts: {
       // ...
   },

   specs: [
       './features/*.feature',
   ],
};
WebdriverIO with Serenity/JS and Mocha

 import { ConsoleReporter } from '@serenity-js/console-reporter';
 import { ArtifactArchiver } from '@serenity-js/core';
 import { SerenityBDDReporter } from '@serenity-js/serenity-bdd';
 import { WebdriverIOConfig } from '@serenity-js/webdriverio';

 export const config: WebdriverIOConfig = {

   framework: '@serenity-js/webdriverio',

   serenity: {
       runner: 'mocha',
       crew: [
           ConsoleReporter.forDarkTerminals(),
           new SerenityBDDReporter(),
           ArtifactArchiver.storingArtifactsAt('./target/site/serenity'),
       ]
   },

   mochaOpts: {
       // ...
   },

   specs: [
       './spec/*.spec.*',
   ],
};
WebdriverIO with Serenity/JS and Jasmine

 import { ConsoleReporter } from '@serenity-js/console-reporter';
 import { ArtifactArchiver } from '@serenity-js/core';
 import { SerenityBDDReporter } from '@serenity-js/serenity-bdd';
 import { WebdriverIOConfig } from '@serenity-js/webdriverio';

 export const config: WebdriverIOConfig = {

   framework: '@serenity-js/webdriverio',

   serenity: {
       runner: 'jasmine',
       crew: [
           ConsoleReporter.forDarkTerminals(),
           new SerenityBDDReporter(),
           ArtifactArchiver.storingArtifactsAt('./target/site/serenity'),
       ]
   },

   jasmineOpts: {
       // ...
   },

   specs: [
       './spec/*.spec.*',
   ],
};

Member Summary

Public Members
public

Serenity/JS configuration with an additional runner entry allowing to specify the test runner, such as cucumber, mocha, or jasmine.

Public Members

public serenity: SerenityConfig source

Serenity/JS configuration with an additional runner entry allowing to specify the test runner, such as cucumber, mocha, or jasmine.