Skip to content

increasing test coverage #229

Closed
Closed

Description

@kushalkolar
  • screenshots from notebooks, probably useful for the users to see how to save snapshots of the canvas anyways
  • change ipywidget values, like sliders for image widget, check that it updates the plot data
  • selector tools, need to see how to programmatically do pygfx events like mouse events etc.

Activity

  1. clewis7 commented on Jun 21, 2023

    @clewis7
    Member
        # we skip the rest of the test if you are not using lavapipe
        # images come out subtly differently when using different wgpu adapters
        # so for now we only compare screenshots generated with the same adapter (lavapipe)
        # a benefit of using pytest.skip is that you are still running
        # the first part of the test everywhere else; ensuring that examples
        # can at least import, run and render something
        if not is_lavapipe:
            pytest.skip("screenshot comparisons are only done when using lavapipe")
    

    In regard to screenshot diffs being generated, pygfx just skips if not lavapipe

    @kushalkolar we could add to ours as well, not sure if it is a good long term solution

  2. clewis7 commented on Jun 26, 2023

    @clewis7
    Member

    @kushalkolar should we add in the above about skipping screenshot comparison of a test if lavapipe is not being used locally to avoid rendering diffs?

  3. kushalkolar commented on Jun 26, 2023

    @kushalkolar
    MemberAuthor
  4. changed the title [-]more test stuff[/-] [+]increasing test coverage[/+] on Nov 28, 2023
  5. kushalkolar commented on Jun 4, 2024

    @kushalkolar
    MemberAuthor

    all this exists now except emulating mouse events, but we have another issue for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions