Skip to content

Commit 4fb0af3

Browse files
matz3flovogt
authored andcommitted
Gherkin Example
1 parent 19b95d2 commit 4fb0af3

File tree

10 files changed

+1233
-176
lines changed

10 files changed

+1233
-176
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,5 @@ typings/
6262

6363
dist/
6464
tmp/
65+
66+
report/

html-report.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
var reporter = require('cucumber-html-reporter');
3+
4+
var options = {
5+
theme: 'bootstrap',
6+
jsonFile: 'report/cucumber.json',
7+
output: 'report/cucumber.html',
8+
reportSuiteAsScenarios: true,
9+
scenarioTimestamp: true,
10+
launchReport: true,
11+
metadata: {}
12+
};
13+
14+
reporter.generate(options);

karma-gherkin.conf.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
module.exports = function(config) {
2+
"use strict";
3+
4+
require("./karma.conf")(config);
5+
config.set({
6+
7+
ui5: {
8+
logAssertions: true,
9+
logHTMLFilePath: true,
10+
testpage: "webapp/test/gherkin/gherkinTests.qunit.html"
11+
},
12+
13+
cucumberReporter: {
14+
out: "report/cucumber.json"
15+
},
16+
17+
reporters: ["progress", "cucumber"],
18+
19+
browsers: ["CustomChromeHeadless"],
20+
21+
singleRun: true
22+
23+
});
24+
};

0 commit comments

Comments
 (0)