-
Notifications
You must be signed in to change notification settings - Fork 150
feat: Pass suiteCollection on BEGIN event to allow to modify it #728
Conversation
doc/events.md
Outdated
@@ -16,3 +16,9 @@ | |||
* `START_BROWSER` - emitted on browser session start. Emitted with [browser instance](../lib/browser/new-browser.js). If handler returns a promise tests will be executed in this session only after the promise is resolved. | |||
|
|||
* `STOP_BROWSER` - emitted right before browser session end. Emitted with [browser instance](../lib/browser/new-browser.js). If handler returns a promise quit will be performed only after the promise is resolved. | |||
|
|||
* `BEGIN` - runner event. Emitted on runner start with 1 argment `data`: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
argUment
test/unit/runner/index.js
Outdated
@@ -133,6 +133,17 @@ describe('runner', () => { | |||
return run(runner).then(() => assert.calledOnce(onBegin)); | |||
}); | |||
|
|||
it('should suite collection of states when emitting "BEGIN" event', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should pass ...
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when emitting "BEGIN" event --> on "BEGIN" event
doc/events.md
Outdated
@@ -16,3 +16,9 @@ | |||
* `START_BROWSER` - emitted on browser session start. Emitted with [browser instance](../lib/browser/new-browser.js). If handler returns a promise tests will be executed in this session only after the promise is resolved. | |||
|
|||
* `STOP_BROWSER` - emitted right before browser session end. Emitted with [browser instance](../lib/browser/new-browser.js). If handler returns a promise quit will be performed only after the promise is resolved. | |||
|
|||
* `BEGIN` - runner event. Emitted on runner start with 1 argment `data`: | |||
* `data.suiteCollection` - suite collection which will be run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
нужно указать или все свойства через data.
, или все без нее
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
🆙 |
🆗 |
715024e
to
7d04923
Compare
No description provided.