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

Figure out what to test and how #11

Open
0gust1 opened this issue Sep 21, 2023 · 0 comments
Open

Figure out what to test and how #11

0gust1 opened this issue Sep 21, 2023 · 0 comments

Comments

@0gust1
Copy link
Owner

0gust1 commented Sep 21, 2023

The actual project has a test execution pipeline that is ready and hooked into the CI.

Example tests are present (and running), but they don't add much value right now (phony/placeholder tests).

  • playwright is ready for e2e tests
  • vitest is ready for Unit/integration tests

Ideally, E2E tests should be implemented as soon as possible, when the functional/feature coverage of the library would be clearer.

Right now I guess that the e2e testing would be roughly:

  • load a showcase website page
  • target an example, click some UI controls & do things
  • access the component's Molstar instance and assert the actions effects.
  • possibly take screenshots and compare with previous run (not fan of theses approaches, very brittle in practice)
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

No branches or pull requests

1 participant