Skip to content

fix --suites flag for run workers #2655

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

Merged
merged 1 commit into from
Nov 8, 2020
Merged

fix --suites flag for run workers #2655

merged 1 commit into from
Nov 8, 2020

Conversation

Georgegriff
Copy link
Collaborator

@Georgegriff Georgegriff commented Nov 5, 2020

Motivation/Description of the PR

  • The suites flag for workers is not working, wrote runner test to prove it
  • Resolves #issueId (if applicable).

Applicable helpers:

  • WebDriver
  • Puppeteer
  • Nightmare
  • REST
  • FileHelper
  • Appium
  • Protractor
  • TestCafe
  • Playwright

Applicable plugins:

  • allure
  • autoDelay
  • autoLogin
  • customLocator
  • pauseOnFail
  • puppeteerCoverage
  • retryFailedStep
  • screenshotOnFail
  • selenoid
  • stepByStepReport
  • wdio

Type of change

  • 🔥 Breaking changes
  • 🚀 New functionality
  • 🐛 Bug fix
  • 📋 Documentation changes/updates
  • ♨️ Hot fix
  • 🔨 Markdown files fix - not related to source code
  • 💅 Polish code

Checklist:

  • Tests have been added
  • Documentation has been added (Run npm run docs)
  • Lint checking (Run npm run lint)
  • Local tests are passed (Run npm test)

const groups = populateGroups(numberOfWorkers);

const mocha = Container.mocha();

mocha.files = files;
mocha.loadFiles();
Copy link
Contributor

@DavertMik DavertMik Nov 8, 2020

Choose a reason for hiding this comment

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

ok, this make sense to me. As it is the same behavior that in createGroupOfTests
Thanks @Georgegriff

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah I checked the 2.x code the suite flag used to have this exact logic looks like was just missed in refactor

@Georgegriff Georgegriff merged commit b133bad into 3.x Nov 8, 2020
@Georgegriff Georgegriff deleted the fix-worker--suites branch November 8, 2020 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants