Skip to content
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: Fix runFor #506

Merged
merged 2 commits into from
Jul 24, 2022
Merged

WIP: Fix runFor #506

merged 2 commits into from
Jul 24, 2022

Conversation

olivercoad
Copy link
Contributor

Fixes #505
This is what I had in mind to make runFor more reliable. It still clones the suites for each browser so that the context is still specific to the browser, but does not add an extra suite to do the browser switching so that running suites in different order doesn't break it.

Types of changes

What types of changes does your code introduce to canopy?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • Build and tests pass locally
  • I have added tests that prove my fix is effective or that my feature works (if appropriate)
  • I have added necessary documentation (if appropriate)

Further comments

Unfortunately it still doesn't satisfactorily show an error if the browser fails to start.
If an exception occurs when starting a browser, then failSuite is run on all suites for that browser instead of running the tests.

But failSuite runs fail with autoFail set to true, just skipping all the tests and nothing actually fails.
What is the point of autoFail? Isn't the whole point of failSuite to report all the tests as failed (it's not skipSuite...) #178?

I'm hesitant to just just remove autoFail altogether because I don't understand why it was added.

@lefthandedgoat
Copy link
Owner

Its going to take me a while to get to pulling this. I bought a house and it is consuming all of my time! Thanks for the PR!

@olivercoad
Copy link
Contributor Author

No worries. Congratulations on your house!

@siwatanejo
Copy link

ping :)

@lefthandedgoat lefthandedgoat merged commit 87ab77a into lefthandedgoat:master Jul 24, 2022
@olivercoad
Copy link
Contributor Author

@lefthandedgoat any comments on the autoFail thing? This was marked as WIP because without addressing that, it can still pass CI even if browsers fail to open. So #505 should still be open.

@lefthandedgoat
Copy link
Owner

lefthandedgoat commented Jul 25, 2022

@olivercoad yes I will look at it before I do a build/release. Do you know how to reproduce having a browser not start?

lefthandedgoat added a commit that referenced this pull request Aug 8, 2022
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.

runFor is very flaky
3 participants