-
Notifications
You must be signed in to change notification settings - Fork 3
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: only skip validation tests when given explicit flag #472
Conversation
@@ -26,16 +26,17 @@ def get_validator() -> Path | None: | |||
return None | |||
|
|||
|
|||
@pytest.fixture | |||
@pytest.fixture(scope="session") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
session scope is not strictly necessary, but seems a good thing to have
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #472 +/- ##
==========================================
- Coverage 91.88% 91.42% -0.46%
==========================================
Files 58 59 +1
Lines 5887 6064 +177
==========================================
+ Hits 5409 5544 +135
- Misses 478 520 +42 ☔ View full report in Codecov by Sentry. |
f8291bc
to
c1477c7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, left a minor copy suggestion.
I see the CI does run execution tests with |
Co-authored-by: Kartik Singhal <[email protected]>
pytest previously skipped the validation tests if the validator was not built, leading to the situation in #468 where many tests were accidentally skipped in CI.
Instead, fail the tests if the validator is not installed, but allow
pytest --no_validation
to skip them instead.The possibility of doing similar for execution tests (somewhat-silently skipped if
execute-llvm
isn't installed) is left for a later PR.