Closed Aaron-Robertson closed 1 year ago
Some previous work to speed up tests: https://github.com/unitaryfund/mitiq/pull/583
I am working on this, just wanted to add that since it's related.
thanks for working on this @natestemen! For purposes of the release I'll close this issue and create a new one for incremental improvements in a future milestone.
Pre-Request Checklist
Issue Description
Local test times are onerous for Mitiq contributors and for the repository actions. Contribution would be easier if tests run faster.
Proposed Solution
Look for redundancy in the above tests and remove/reduce wherever possible. Potentially split this issue into two to three sub issues, with the first focused on CDR and the final focused on PyQuil.
Additional References
Add the --durations=N flag to a test run to check local runtimes, where N is the number of ranked test length to track (and 0 returns all test times ranked). I.e. to obtain the above data, the flag is
--durations=15
and the full command ispytest -n auto -v --cov=mitiq --cov-report=term --cov-report=xml --ignore=mitiq/interface/mitiq_pyquil --durations=15
.