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

exclude tests based on specific dependency - woo, jetpack, wonder #830

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

circlecube
Copy link
Member

Proposed changes

This updates the cypress config to exclude tests on their specific dependency. Before these were excluded in one group but had different dependencies. We'll need to routinely check the requirements for each dependency and update as needed.

The Cypress tests have dependencies on the WooCommerce and Jetpack plugins as well as the Wonder Theme. These dependencies each have different requirements, and when they are not met, the test needs to be excluded because the dependency installation will fail. These are relatively few, but it is important to get them set properly so the matrix of tests can reliably pass.

This adds a little helper method for cleanliness that checks requirements/support for each specific dependency and excludes it if they are not met. It includes links to the files that determine requirements in each dependency too, so this can be easily checked in the future as dependencies are updated.

Ideally, we have graceful fallbacks in the modules to address when the dependency is not installed or available. In those cases, the tests are different and not relevant so they still need to be excluded here. Ensuring graceful fallback is beyond the scope of this PR.

Type of Change

Production

  • 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)
  • Dependency update
  • Refactoring / housekeeping (changes to files not directly related to functionality)

Development

  • Tests
  • Dependency update
  • Environment update / refactoring
  • Documentation Update

Video

Checklist

  • I have read the CONTRIBUTING doc
  • I have viewed my change in a web-browser
  • Linting and tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

@circlecube circlecube self-assigned this Dec 5, 2024
@circlecube circlecube changed the base branch from main to develop December 5, 2024 18:06
@circlecube circlecube added this to the December 18, 2024 Release milestone Dec 5, 2024
Copy link

cypress bot commented Dec 5, 2024

HostGator Plugin    Run #5382

Run Properties:  status check passed Passed #5382  •  git commit c00c6414fe: exclude tests based on specific dependency - woo, jetpack, wonder
Project HostGator Plugin
Branch Review update/cypress-config-for-exclusions
Run status status check passed Passed #5382
Run duration 26m 53s
Commit git commit c00c6414fe: exclude tests based on specific dependency - woo, jetpack, wonder
Committer Evan Mullins
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 28
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 323
View all changes introduced in this branch ↗︎

Copy link

cypress bot commented Dec 5, 2024

HostGator Plugin    Run #5401

Run Properties:  status check passed Passed #5401  •  git commit b0683e67f1 ℹ️: Merge c00c6414fec0399965b591e8930294a901bd61d3 into 75bb2205d62f18b78bd9615d5fba...
Project HostGator Plugin
Branch Review update/cypress-config-for-exclusions
Run status status check passed Passed #5401
Run duration 26m 44s
Commit git commit b0683e67f1 ℹ️: Merge c00c6414fec0399965b591e8930294a901bd61d3 into 75bb2205d62f18b78bd9615d5fba...
Committer Evan Mullins
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 1
Tests that did not run due to a developer annotating a test with .skip  Pending 28
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 323
View all changes introduced in this branch ↗︎

@circlecube circlecube merged commit bc9ba30 into develop Dec 5, 2024
24 of 25 checks passed
@circlecube circlecube deleted the update/cypress-config-for-exclusions branch December 5, 2024 19:58
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.

2 participants