Skip to content

Add Tests for plotting#38

Merged
singjc merged 26 commits intoOpenMS:mainfrom
jcharkow:test_new
Oct 31, 2024
Merged

Add Tests for plotting#38
singjc merged 26 commits intoOpenMS:mainfrom
jcharkow:test_new

Conversation

@jcharkow
Copy link
Collaborator

@jcharkow jcharkow commented Sep 26, 2024

Using pytest and syrupy add snapshot test for some basic plots.

Note: needed to fix the plotly and matplotlib versions because different versions generate slightly different plots.

Add github actions for automatically performing the tests

add snapshot testing backend back.

New for this repository is the matplotlib snapshot extension
- use a common test document to test all backends
- update bokehSnapShotExtension to be the same as massdash
modify matplotlib code for working with marginal plots
try installing using pip
refactor and add conftest file to reduce duplicate code
only 1 python version for testing purposes
remove duplicate file
update to use common fixtures
update to use common fixtures
tight_layout() functionality differs slightly depending on matplotlib
version, fix the version so do not have this problem.
regenerate snapshots with latest version of mpl.
Ensure that the latest version of mpl is installed
remove mac os testing because plotly has slight differences
@singjc
Copy link
Collaborator

singjc commented Oct 18, 2024

@jcharkow is this ready to merge?

@jcharkow
Copy link
Collaborator Author

This is ready to merge. If it looks good to you

@singjc singjc merged commit 9081022 into OpenMS:main Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants