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

test: conditional e2e discovery #291

Merged
merged 1 commit into from
Nov 15, 2024
Merged

test: conditional e2e discovery #291

merged 1 commit into from
Nov 15, 2024

Conversation

supakeen
Copy link
Owner

@supakeen supakeen commented Nov 15, 2024

When pytest discovers test files to run it executes the files (or something like it). This means that imports must be available at that point in time.

Let's add an import check to conftest.py to ignore discovery in the e2e subdirectory when playwright is not available.

This closes #284.

When pytest discovers test files to run it executes the files (or
something like it). This means that imports must be available at that
point in time.

Let's add an import check to `conftest.py` to ignore discovery in the
e2e subdirectory when playwright is not available.

This closes #284.

Signed-off-by: Simon de Vlieger <[email protected]>
@supakeen supakeen force-pushed the pytest-discovery-fix branch from c2f346b to 2aba8e8 Compare November 15, 2024 11:45
@supakeen supakeen merged commit 5f0e526 into master Nov 15, 2024
22 checks passed
@supakeen supakeen deleted the pytest-discovery-fix branch November 15, 2024 11:48
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.

e2e tests are run regardless of --e2e flag on pytest
1 participant