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

tests: Skip snapshot tests if Textual is outdated #657

Conversation

godlygeek
Copy link
Contributor

Have our test suite check the version of Textual and pytest-textual-snapshot that it's running with, and automatically disable the Textual snapshot tests if we can determine statically that they will go on to fail. This is a better experience for 3rd party package maintainers and simplifies our handling of Python versions that Textual has already dropped support for. This doesn't negatively affect our CI, since we keep our dependencies live at head in CI.

Closes #654

@godlygeek godlygeek self-assigned this Aug 3, 2024
Have our test suite check the version of Textual and
pytest-textual-snapshot that it's running with, and automatically
disable the Textual snapshot tests if we can determine statically that
they will go on to fail. This is a better experience for 3rd party
package maintainers and simplifies our handling of Python versions that
Textual has already dropped support for. This doesn't negatively affect
our CI, since we keep our dependencies live at head in CI.

Signed-off-by: Matt Wozniski <[email protected]>
@godlygeek godlygeek force-pushed the skip_snapshot_tests_based_on_textual_version branch from 50393a4 to 12d8f38 Compare August 3, 2024 00:32
@codecov-commenter
Copy link

codecov-commenter commented Aug 3, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 11 lines in your changes missing coverage. Please review.

Project coverage is 92.99%. Comparing base (260b8d5) to head (12d8f38).

Files Patch % Lines
tests/conftest.py 64.51% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #657      +/-   ##
==========================================
- Coverage   93.05%   92.99%   -0.07%     
==========================================
  Files          94       94              
  Lines       11420    11445      +25     
  Branches     2094     2114      +20     
==========================================
+ Hits        10627    10643      +16     
- Misses        793      802       +9     
Flag Coverage Δ
cpp 92.99% <66.66%> (-0.07%) ⬇️
python_and_cython 92.99% <66.66%> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pablogsal pablogsal merged commit bffcd04 into bloomberg:main Aug 9, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

snapshot? tests are faillings
3 participants