← Back to Discord Forum

Global setup and test sharding

dirvinautomation_16636posted in #help-playwright
Open in Discord

If I've configured a GitHub action to shard my test suite (using the standard Playwright sharding as described in the documentation), will Playwright run the global setup for each shard? Or will it be run once and shared across all shards?

This thread is trying to answer question "Does Playwright run the global setup for each test shard when using GitHub actions to shard a test suite?"

2 replies

Hmm... I guess nobody knows... I'll do some testing to see if I can figure it out. I'll report back.


Ok reporting back!

I included some log statements in my global setup file.

After inspecting the github actions output, I am seeing this log statement called in each individual shard.

So my summation is that the global setup is run for each test shard. Please correct me if I'm wrong!

Related Discord Threads

AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.