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

Include AA's conformance tests in all files that use them #4439

Merged

Conversation

lgoettgens
Copy link
Member

Thanks to @paemurru for reporting on slack.

Even though we have

@everywhere import Oscar.Nemo.AbstractAlgebra
@everywhere include(joinpath(pathof(Oscar.Nemo.AbstractAlgebra), "..", "..", "test", "Rings-conformance-tests.jl"))
for CI, this does not automatically apply for local testing using Oscar.test_module. Thus the easiest fix is to explicitly include this file at these few positions.

In the long run, this will become obsolete by Nemocas/AbstractAlgebra.jl#1936.

@lgoettgens lgoettgens added the testsuite Everything concerning testsuite label Jan 10, 2025
Copy link

codecov bot commented Jan 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.39%. Comparing base (42a33a5) to head (7649384).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4439   +/-   ##
=======================================
  Coverage   84.39%   84.39%           
=======================================
  Files         663      663           
  Lines       87938    87938           
=======================================
  Hits        74214    74214           
  Misses      13724    13724           

see 1 file with indirect coverage changes

@lgoettgens lgoettgens requested a review from fingolfin January 10, 2025 11:20
Copy link
Member

@benlorenz benlorenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At least for some of the test folders it would be nicer to have this in a setup_tests.jl, for example in test/LieTheory there is already a setup file which includes the Rings-conformance-tests.jl.
For test/Rings it would also avoid quite a bit of duplication.
test_module should load these files automatically if they exist.

Maybe we can even remove the @everywhere include for this file then?

@lgoettgens lgoettgens force-pushed the lg/inlcude-conformance-tests branch from 12a407f to 7649384 Compare January 10, 2025 12:07
@lgoettgens
Copy link
Member Author

Done. I wouldn't spend any more work on the details here, since I am already working on a version of Nemocas/AbstractAlgebra.jl#1936 that works even in julia 1.6, so we can hopefully remove all of this in the near future.

Copy link
Member

@benlorenz benlorenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@lgoettgens lgoettgens enabled auto-merge (squash) January 10, 2025 12:45
@lgoettgens lgoettgens merged commit 8dd3b60 into oscar-system:master Jan 10, 2025
29 of 31 checks passed
@lgoettgens lgoettgens deleted the lg/inlcude-conformance-tests branch January 13, 2025 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testsuite Everything concerning testsuite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants