Skip to content
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

Pytest webviz fixture #203

Open
anders-kiaer opened this issue Feb 23, 2020 · 0 comments · May be fixed by #204
Open

Pytest webviz fixture #203

anders-kiaer opened this issue Feb 23, 2020 · 0 comments · May be fixed by #204
Assignees
Labels
enhancement 🚀 New feature or request

Comments

@anders-kiaer
Copy link
Collaborator

anders-kiaer commented Feb 23, 2020

Dash provides their own pytest fixture, however, still using that fixture, testing different Webviz plugins requires repeating boilerplate code.

Provide a pytest fixture, based on e.g. Dash's dash_duo fixture, to facilitate testing of Webviz plugins.

Some features to consider:

  • The Webviz fixture should itself be based on dash_duo.
  • Should facilitate creating the app instance, and create an instance of the plugin in a Webviz setting (with given arguments).
  • Should be possible to test with CSP settings enabled.
  • Should be possible to check if selenium console logs are empty or not.
  • Should be possible to check if file resources outside "white-listed" folders are used in portable mode (to ensure the plugin indeed works in a "portable" setting).
  • Save screenshots at user defined stages through the test, and optionally compare with stored pictures at given location (visual regression/testing). Stored location could e.g. be a different orphan branch of the github repo?
  • Should be possible to automatically check if tour guide element ID's (if defined) actually exists.
  • Check that webviz-store decorated functions don't take in pandas objects (which are known to not have well-behaving repr wrt. uniqueness).

Today we mostly test in portable mode. There are some differences, like how assets are loaded. Should faciliate testing both in portable and non-portable mode.

@anders-kiaer anders-kiaer added the enhancement 🚀 New feature or request label Feb 23, 2020
@anders-kiaer anders-kiaer self-assigned this Feb 24, 2020
@anders-kiaer anders-kiaer linked a pull request Feb 24, 2020 that will close this issue
@anders-kiaer anders-kiaer moved this to Backlog 📝 in Webviz Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🚀 New feature or request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant