Skip to content

feat: adding pytest-cov and pytest-xdist#90

Merged
jnwei merged 1 commit intomainfrom
jandom/2026-01/feat/pytest-cov-pytest-xdist
Jan 19, 2026
Merged

feat: adding pytest-cov and pytest-xdist#90
jnwei merged 1 commit intomainfrom
jandom/2026-01/feat/pytest-cov-pytest-xdist

Conversation

@jandom
Copy link
Collaborator

@jandom jandom commented Jan 15, 2026

Summary

This will help my test writing efforts tremendously: adding an ability to generate coverage reports, and, running tests in parallel

Changes

Added pytest-cov and pytest-xdist as test-only deps

Related Issues

Testing

Other Notes

@jandom jandom requested a review from jnwei January 15, 2026 16:45
@jandom jandom self-assigned this Jan 15, 2026
@jandom jandom added the safe-to-test Internal only label used to indicate PRs that are ready for automated CI testing. label Jan 15, 2026
-v ${{ github.workspace }}:/opt/openfold3 \
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:test-${{ inputs.cuda_base_image_tag }}-${{ github.sha }} \
pytest openfold3/tests -vvv
pytest openfold3/tests -vvv -n auto --cov=openfold3 --cov-report=xml
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This could be baked into pyproject.toml but I like it more opt-in and explicit this way (at least for now)

@sdvillal
Copy link

Maybe we should consider adding also pytest-benchmark?

As a note, there are some changes (hopefully improvements) to pyproject.toml in the modernize-conda PR:
https://github.com/aqlaboratory/openfold-3/commits/bc2d785b7c84f18f20c800ef2a5e844a2ce235fe/pyproject.toml

I am fearing a bit the next rebase once further changes to pyproject.toml are merged into main, but that is my bad for having such a long-lived branch.

@jandom
Copy link
Collaborator Author

jandom commented Jan 15, 2026

100% let's add 'pytest-benchmark' in – it'll guard us against things becoming silently ungodly slow!

Yeah, I'm treading carefully around pyproject.toml because I know your PR is coming ;-)

Copy link
Contributor

@jnwei jnwei left a comment

Choose a reason for hiding this comment

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

LGTM! could you also report the current code coverage so we know where we're starting from?

@jnwei jnwei merged commit f960ed0 into main Jan 19, 2026
5 checks passed
@jnwei jnwei deleted the jandom/2026-01/feat/pytest-cov-pytest-xdist branch January 19, 2026 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe-to-test Internal only label used to indicate PRs that are ready for automated CI testing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants