UNPKG

@serenity-js/protractor

Version:

Adapter that integrates @serenity-js/web with Protractor, enabling Serenity/JS reporting and using the Screenplay Pattern to write end-to-end test scenarios

48 lines 1.96 kB
import type { TestRunnerAdapter } from '@serenity-js/core/lib/adapter'; import { Path } from '@serenity-js/core/lib/io'; import type { CucumberAdapterConfig } from './CucumberAdapterConfig'; /** * Loads a [`TestRunnerAdapter`](https://serenity-js.org/api/core-adapter/interface/TestRunnerAdapter/) needed to invoke * the chosen test runner programmatically. * * @group Integration */ export declare class TestRunnerLoader { private readonly runnerId; private readonly moduleLoader; private readonly fileSystem; private readonly finder; /** * @param cwd * Current working directory; used to resolve glob paths to files for Cucumber.js to `require`, * and instructing Serenity/JS where to look for this module's optional * dependencies, like [`@serenity-js/cucumber`](https://serenity-js.org/api/cucumber), * [`@serenity-js/mocha`](https://serenity-js.org/api/mocha), * [`@serenity-js/jasmine`](https://serenity-js.org/api/jasmine), etc. * * @param runnerId * Unique identifier used to differentiate output files produced by native Cucumber.js formatters. * For example, `process.pid` */ constructor(cwd: Path, runnerId: number | string); /** * See [`JasmineConfig`](https://serenity-js.org/api/jasmine-adapter/interface/JasmineConfig/) * * @param jasmineNodeOpts */ forJasmine(jasmineNodeOpts: object): TestRunnerAdapter; /** * See [`MochaConfig`](https://serenity-js.org/api/mocha-adapter/interface/MochaConfig/) * * @param mochaOpts */ forMocha(mochaOpts: object): TestRunnerAdapter; /** * See [`CucumberConfig`](https://serenity-js.org/api/cucumber-adapter/interface/CucumberConfig/) * * @param cucumberOpts * @param adapterConfig */ forCucumber(cucumberOpts: object, adapterConfig: CucumberAdapterConfig): TestRunnerAdapter; } //# sourceMappingURL=TestRunnerLoader.d.ts.map