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

Breaking changes to the conformance test setup #2002

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lgoettgens
Copy link
Collaborator

The new setup is in place since #1954. This PR removes the backward compatibility. (No need to rush this, we can just include this the next time we need to do a breaking release due to some other reason).

For examples on how to upgrade, see Nemocas/Nemo.jl#2036, thofma/Hecke.jl#1764, oscar-system/Oscar.jl#4622.

Most important changes:

  • Conformance tests are no longer loaded by including some file from the test directory, but are put into the submodule ConformanceTests, which only contains function stubs. The implementations get added by a package extension triggered by Test.
  • Thus, all code calling a function from the conformance tests (test_mutating_op_*, test_*_interface(_recursive)) needs to qualify the call with ConformanceTests..
  • test_elem got renamed to ConformanceTests.generate_element and its implementations need to be moved form test to src.

@lgoettgens lgoettgens added breaking release notes: to be added PRs introducing changes that should be (but have not yet been) mentioned in the release notes labels Feb 21, 2025
Copy link

codecov bot commented Feb 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.34%. Comparing base (4528d2a) to head (c837e6d).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2002   +/-   ##
=======================================
  Coverage   88.34%   88.34%           
=======================================
  Files         125      125           
  Lines       31501    31501           
=======================================
  Hits        27828    27828           
  Misses       3673     3673           

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking release notes: to be added PRs introducing changes that should be (but have not yet been) mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant