Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add pytest-mpl image comparison tests and update CI workflow#413

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
lukelbd wants to merge10 commits intomaster
base:master
Choose a base branch
Loading
fromadd-tests

Conversation

lukelbd
Copy link
Collaborator

This will finally add robust image comparison testing to proplot usingmatplotlib/pytest-mpl.

Insidetests, I declare several functions developed from my ownad hoc jupyter notebook tests. These will be automatically detected + run bypytest, with image comparisons carried out bypytest-mpl. Further, insidetests/test_docs.py, I dynamically create testing functions from the rst-style python files indocs usingjupytext, so thatpytest-mpl can perform image comparisons on the documentation examples alongside the other testing files. So, the travis CI no longer compiles the documentation withmake html -- instead, the existing readthedocs workflow does this, and it should also now be enabled for new pull requests (if not, will try to figure out soon). I also use a fork ofpytest-mpl to support comparing arbitrary figures created by each testing function (i.e., without explicitly returning figure objects; seethis branch).

This work was done quite a while ago -- has just been sitting on my machine. Would like to merge it this spring.

lukelbd

This comment was marked as duplicate.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@lukelbd

[8]ページ先頭

©2009-2025 Movatter.jp