-
Notifications
You must be signed in to change notification settings - Fork 14
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
Refactor tests to use TestItems.jl #142
base: master
Are you sure you want to change the base?
Refactor tests to use TestItems.jl #142
Conversation
Hi, Bryan! Thank you for starting this! Please check out this similar contribution made to QuantumClifford.jl -- following the same style would help me a lot in keeping things consistent across projects: QuantumSavory/QuantumClifford.jl#329 QuantumSavory probably will be a more challenging case because there are a lot of ad-hoc examples tested in weird environments (faked opengl environment in CI for some of the plotting tests for instance). It will probably need some redoing of of tagging and filtering of tests. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #142 +/- ##
==========================================
- Coverage 72.94% 69.08% -3.86%
==========================================
Files 39 39
Lines 1693 1692 -1
==========================================
- Hits 1235 1169 -66
- Misses 458 523 +65 ☔ View full report in Codecov by Sentry. |
The only remaining failure is the Comparing the github actions run log to a recent run on
and one new warning during running tests:
|
Thanks, @BKaperick ! Some of the errors you are getting are from some invasive work happening to remove piracies that is still in progress as it spans multiple packages (e.g. #143 ). It should get merged soon and then I will be able to rerun the tests here and provide a review. Apologies for the delay! I am running a summer workshop this week (qnumerics.org) so I might be a bit slow to answer. |
cf77a88
to
f3a942b
Compare
809add9
to
fa3fe7f
Compare
Apologies for not warning you about the JuMP/GraphMatching removal -- that happened because they were causing issues with installation on non-linux machines. |
Hi @Krastanov no problem at all about the GraphMatching removal; I saw the other PR. Right now I have 37 issues identified by JET, which is more than the 33 allowed. The last run on Doing a diff on the JET output, it looks like these are the two new issues, but looking at src/CircuitZoo/CircuitZoo.jl#L150 I don't see why this PR would cause these new issues to arise:
|
Closes issue #141.
Hello, this is a first contribution, so I am fully receptive to any feedback you have.
I have a few comments/questions:
@testitem
blocks cannot be nested, and I don't know of any way to share set-up code between them, so intest/test_circuitzoo_purification.jl
I just kept the@testset
blocks, but all nested within one@testitem
. If someone has a recommendation for how to do this more properly I will update this.I am still testing it locally, so I am opening this as a draft to indicate that I am actively working on this issue. I will change its status to Open once I've validated the changes are working correctly.