-
-
Notifications
You must be signed in to change notification settings - Fork 729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] updated docs and worker events #2249
Conversation
lib/workers.js
Outdated
res(true); | ||
}, 'bootstrapAll'); | ||
})); | ||
event.dispatcher.emit(event.workers.before); |
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.
this way we can attach async hooks before workers were initialized
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.
@peterngtr this way we will be able to integrate ReportPortal with Codecept for parallel runs in worker.
See my PR reportportal/agent-js-codecept#3
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.
that's awesome 👏 @DavertMik
docs/parallel.md
Outdated
} | ||
} | ||
``` | ||
workers.on(event.all.result, (status, completed, workerStats) => { |
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.
@koushikmohan1996 I have really no idea what to write here in the docs
Can you help me? What are those objects and how to use them? :)
Maybe we can simplify API to it would be bit more clear?
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.
Ok I will write the docs
…make it available in workers.
…file to make it available in workers." This reverts commit 6dd2b8a.
This is WIP PR which adds the following:
workers.before
andworkers.after
eventsby
function to accept number of workers to splitTODO:
event.all.result
for a master process. This should be more documented/clarified on how to use it to retrieve errorsApplicable helpers:
Applicable plugins:
Type of change
Checklist:
npm run docs
)npm run lint
)npm test
)