diff --git a/docs/frameworks.md b/docs/frameworks.md index c880cf9f5..9ad77c114 100644 --- a/docs/frameworks.md +++ b/docs/frameworks.md @@ -82,19 +82,19 @@ exports.config = { seleniumAddress: 'http://localhost:4444/wd/hub', baseUrl: 'https://angularjs.org/', - + capabilities: { browserName:'chrome' }, - framework: 'custom', // set to "custom" instead of cucumber. - + framework: 'custom', // set to "custom" instead of cucumber. + frameworkPath: require.resolve('protractor-cucumber-framework'), // path relative to the current config file - + specs: [ './cucumber/*.feature' // Specs here are the cucumber feature files ], - + // cucumber command line options cucumberOpts: { require: ['./cucumber/*.js'], // require step definition files before executing features @@ -115,5 +115,3 @@ Using a Custom Framework ------------------------ Check section [Framework Adapters for Protractor](/lib/frameworks/README.md) specifically [Custom Frameworks](/lib/frameworks/README.md#custom-frameworks) - - diff --git a/lib/config.ts b/lib/config.ts index 0994a0bd7..107d62f25 100644 --- a/lib/config.ts +++ b/lib/config.ts @@ -1,6 +1,8 @@ import {PluginConfig} from './plugins'; export interface Config { + [key: string]: any; + // --------------------------------------------------------------------------- // ----- How to connect to Browser Drivers ----------------------------------- // --------------------------------------------------------------------------- @@ -560,30 +562,6 @@ export interface Config { */ mochaOpts?: {[key: string]: any; ui?: string; reporter?: string;}; - /** - * Options to be passed to Cucumber (when set up as a custom framework). - */ - cucumberOpts?: { - [key: string]: any; - /** - * Require files before executing the features. - */ - require?: string[] | string; - /** - * Only execute the features or scenarios with tags matching @dev. - * This may be an array of strings to specify multiple tags to include. - */ - tags?: string; - /** - * How to format features (default: progress) - */ - format?: string[] | string; - /** - * Quickly scan your features without actually running them. - */ - dryRun?: boolean; - }; - /** * See docs/plugins.md */