Skip to content

Instantly share code, notes, and snippets.

@safebear
Created September 30, 2019 06:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save safebear/4256972bc9465599dfe16b6c23fc58c8 to your computer and use it in GitHub Desktop.
Save safebear/4256972bc9465599dfe16b6c23fc58c8 to your computer and use it in GitHub Desktop.
import { browser, Config } from "protractor";
export const config: Config = {
seleniumAddress: "http://127.0.0.1:4444/wd/hub",
baseUrl: "http://localhost:8080/",
framework: "custom",
frameworkPath: require.resolve("protractor-cucumber-framework"),
specs: [
"../e2e/features/*.feature",
],
onPrepare: () => {
browser.manage().window().maximize();
},
cucumberOpts: {
compiler: "ts:ts-node/register",
format: "json:.tmp/results.json",
profile: false,
require: ["./step_definitions/*.steps.js", "./support/hooks.js"],
tags: false,
"no-source": true,
},
plugins: [{
options: {
automaticallyGenerateReport: true,
removeExistingJsonReportFile: true,
},
package: "protractor-multiple-cucumber-html-reporter-plugin",
}],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment