Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

feat: Pass suiteCollection on BEGIN event to allow to modify it #728

Merged
merged 1 commit into from
Feb 10, 2017

Conversation

j0tunn
Copy link
Contributor

@j0tunn j0tunn commented Feb 9, 2017

No description provided.

@j0tunn
Copy link
Contributor Author

j0tunn commented Feb 9, 2017

@eGavr @sipayRT

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`:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

argUment

@@ -133,6 +133,17 @@ describe('runner', () => {
return run(runner).then(() => assert.calledOnce(onBegin));
});

it('should suite collection of states when emitting "BEGIN" event', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should pass ...?

Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

нужно указать или все свойства через data., или все без нее

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@j0tunn
Copy link
Contributor Author

j0tunn commented Feb 9, 2017

🆙

@sipayRT
Copy link
Member

sipayRT commented Feb 9, 2017

🆗
с saucelab-ом разберусь позже

@j0tunn j0tunn merged commit eb554f6 into master Feb 10, 2017
@j0tunn j0tunn deleted the suite.collection.on.begin branch February 10, 2017 11:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants