Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to filter tests #2807

Unanswered
vid asked this question in Q&A
Feb 12, 2021 · 0 comments
Discussion options

Hi, I'm writing multiple suites of BDD tests which will run using workers with the multiple approach. Some are browser dependant, and grep isn't really flexible enough. Is there a way to use events to filter? For example,

const browsers = ["firefox", "chromium", "webkit"];
workers.on(event.test.before, (test) => {
 if (workerIndex === 2) { // webkit
 test.skip(); // don't run this test
 }
});

This would be very flexible and maybe cover more use cases.

Thanks!

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /