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

Add automated testing #28

Open
fregante opened this issue Sep 26, 2021 · 0 comments
Open

Add automated testing #28

fregante opened this issue Sep 26, 2021 · 0 comments

Comments

@fregante
Copy link
Collaborator

fregante commented Sep 26, 2021

Context

The tests run on a few pages and they output their results in the console, which the tester has to manually open to verify:

Ideally

  1. Browser launches via CLI
  2. Retrieves the log from each context in series (or separate runs)
  3. Outputs it to the CLI
  4. Exits with 0 if the tests fail

Prior art

https://github.com/juliangruber/tape-run

I used this before and it's fantastic, but it runs the code autonomously, as a regular page script (we'd need the code to run in extension contexts)

Alternatives

Minimal, complementary, Node-only testing with mocks could be written, but it would not replace the existing tests. This would verify the internals (logging, retries, exact messages)

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

No branches or pull requests

1 participant