cucumberjs-qase-reporter 0.2.9 → 2.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -36
- package/package.json +36 -45
- package/tsconfig.build.json +9 -0
- package/dist/index.d.ts +0 -36
- package/dist/index.js +0 -454
- package/dist/index.js.map +0 -1
- package/examples/examples/phantom/support/cucumber_documentation.js +0 -23
- package/examples/examples/phantom/support/hooks.js +0 -9
- package/examples/examples/phantom/support/world.js +0 -91
- package/examples/examples/zombie/logo.svg +0 -4
- package/examples/examples/zombie/steps/cucumber_documentation.js +0 -34
- package/examples/examples/zombie/support/hooks.js +0 -26
- package/examples/examples/zombie/support/world.js +0 -16
- package/examples/features/cucumber_documentation.feature +0 -11
- package/examples/features/cucumber_documentation2.feature +0 -23
- package/examples/package-lock.json +0 -25420
- package/examples/package.json +0 -17
- package/test/plugin.test.ts +0 -193
- /package/{examples/screenshots → screenshots}/demo.gif +0 -0
- /package/{examples/screenshots → screenshots}/screenshot.png +0 -0
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
var beforeCallCount = 0;
|
|
2
|
-
var beforeFeatureCallCount = 0;
|
|
3
|
-
|
|
4
|
-
module.exports = function() {
|
|
5
|
-
this.Before(function(scenario) {
|
|
6
|
-
console.log('---> Before hook called', ++beforeCallCount, 'time' + (beforeCallCount !== 1 ? 's' : ''));
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
this.Before('@sections', function(scenario) {
|
|
10
|
-
console.log('---> A test tagged with @sections is about to be run');
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
this.Before('@badges', function(scenario) {
|
|
14
|
-
console.log('---> A test tagged with @badges is about to be run');
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
this.registerHandler('BeforeFeature', function(ev, callback) {
|
|
18
|
-
// Be careful as this.World is not set up yet!
|
|
19
|
-
console.log('---> this.World?', typeof this.World);
|
|
20
|
-
|
|
21
|
-
console.log('---> BeforeFeature hook called', ++beforeFeatureCallCount, 'time' + (beforeFeatureCallCount !== 1 ? 's' : ''));
|
|
22
|
-
|
|
23
|
-
// Don't forget to make a callback!
|
|
24
|
-
callback();
|
|
25
|
-
});
|
|
26
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Export a World constructor which will be the scope of all step definitions.
|
|
3
|
-
*/
|
|
4
|
-
var zombie = require('zombie');
|
|
5
|
-
var worldCallCount = 0;
|
|
6
|
-
|
|
7
|
-
const { setWorldConstructor, World } = require('@cucumber/cucumber')
|
|
8
|
-
|
|
9
|
-
class CustomWorld extends World {
|
|
10
|
-
browser = new zombie({ runScripts: false });
|
|
11
|
-
constructor(options) {
|
|
12
|
-
super(options)
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
setWorldConstructor(CustomWorld)
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
Feature: Cucumber documentation
|
|
2
|
-
As a user of cucumber.js
|
|
3
|
-
I want to have documentation on cucumber
|
|
4
|
-
So I can write better applications
|
|
5
|
-
|
|
6
|
-
@sections
|
|
7
|
-
Scenario: Usage documentation
|
|
8
|
-
Given I am on the cucumber.js GitHub repository
|
|
9
|
-
When I go to the README file
|
|
10
|
-
# Then I should see a "Cool" section
|
|
11
|
-
# When I go to the README file
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
Feature: Cucumber documentation 2
|
|
2
|
-
As a user of cucumber.js
|
|
3
|
-
I want to have documentation on cucumber
|
|
4
|
-
So I can write better applications
|
|
5
|
-
|
|
6
|
-
@badges
|
|
7
|
-
Scenario: Status badges
|
|
8
|
-
Given I am on the cucumber.js GitHub repository
|
|
9
|
-
When I go to the README file
|
|
10
|
-
Then I should see a "12412412" badge
|
|
11
|
-
And I should see a "Dependencies" badge
|
|
12
|
-
|
|
13
|
-
@ignore
|
|
14
|
-
Scenario: Status badges 2
|
|
15
|
-
Given I am on the cucumber.js GitHub repository
|
|
16
|
-
When I go to the README file
|
|
17
|
-
Then I should see a "Build Status" badge
|
|
18
|
-
And I should see a "Dependencies" badge
|
|
19
|
-
|
|
20
|
-
@sections
|
|
21
|
-
Scenario: Usage documentation 5
|
|
22
|
-
Given I am on the cucumber.js GitHub repository
|
|
23
|
-
Then I should see nothing
|