Skip to content

feat: add screenshot in pyvista related methods #521

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

Merged
merged 20 commits into from
Apr 1, 2025

Conversation

SMoraisAnsys
Copy link
Contributor

@SMoraisAnsys SMoraisAnsys commented Mar 27, 2025

Description

Adding screenshot option to preview methods. On top of it, the CI and test configuration has been updated to allow this kind of test to without issues. This will allow us to increase the code coverage !!!

Issue linked

None

Checklist

  • I have tested my changes locally.
  • I have added necessary documentation or updated existing documentation.
  • I have followed the coding style guidelines of this project.
  • I have added appropriate tests (unit, integration, system).
  • I have reviewed my changes before submitting this pull request.
  • I have linked the issue or issues that are solved by the PR if any.
  • I have assigned this PR to myself.
  • I have made sure that the title of my PR follows Conventional commits style (e.g. feat: add optical property)
  • I have agreed with the Contributor License Agreement (CLA).

Previous PR content, kept for visibility

To increase code coverage (and fix bugs, see #520) this PR starts to add test(s) on a method using pyvista rendering.
Three options are available to do so:

While I like the two first options as they would let us really test everything, they also come with a security risk as we don't maintain the solution associated (tbh, I see little risk in using them though). Therefore, I'm following the third option. Depending on what you think about this, we could make this PR evolve.

@SMoraisAnsys SMoraisAnsys self-assigned this Mar 27, 2025
@SMoraisAnsys SMoraisAnsys changed the title tests: add test on plot method test: add tests on plot method Mar 27, 2025
@github-actions github-actions bot added the maintenance Package and maintenance related label Mar 27, 2025
@StefanThoene
Copy link
Collaborator

i will integrate it in my PR

@SMoraisAnsys
Copy link
Contributor Author

@StefanThoene Reopening for testing purposes

@github-actions github-actions bot added the testing Anything related to tests label Mar 27, 2025
@SMoraisAnsys SMoraisAnsys changed the title test: add tests on plot method feat: add screenshot in pyvista related methods Mar 27, 2025
@SMoraisAnsys SMoraisAnsys marked this pull request as ready for review March 27, 2025 15:42
Copy link
Contributor Author

@SMoraisAnsys SMoraisAnsys left a comment

Choose a reason for hiding this comment

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

I'd use the test name for the image name :)

Copy link

codecov bot commented Mar 31, 2025

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@StefanThoene StefanThoene linked an issue Apr 1, 2025 that may be closed by this pull request
2 tasks
@StefanThoene StefanThoene merged commit 284359e into main Apr 1, 2025
34 of 46 checks passed
@StefanThoene StefanThoene deleted the tests/show-methods branch April 1, 2025 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Package and maintenance related testing Anything related to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug located in LXP module
4 participants