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

Experiment with testing web extension examples #162

Open
kumar303 opened this issue Mar 30, 2016 · 2 comments
Open

Experiment with testing web extension examples #162

kumar303 opened this issue Mar 30, 2016 · 2 comments

Comments

@kumar303
Copy link
Contributor

As a first step to understanding what the test command should do (#5), let's try and add tests to the web extension examples.

Things to try:

  • See how far we can get by writing unit tests (e.g. run in Node with mocha) that completely stub out the web extension APIs. This strategy would trust the documented APIs and exercise the units of developer code that work with the APIs.
  • Try shimming / mocking parts of the web extension API to test things like background scripts or message passing.

Here are more detailed notes from a brainstorming meeting about this https://docs.google.com/document/d/1fx27HyovxBlZ0M0kl3FZ0pJX7dOCgUlYF8tOKOWowus/edit#

@kumar303
Copy link
Contributor Author

kumar303 commented Nov 9, 2016

There is an example in progress here although it's a little cumbersome: mdn/webextensions-examples#130

@motin
Copy link

motin commented Jul 1, 2019

There is an example in progress here although it's a little cumbersome: mdn/webextensions-examples#130

Note that this example will probably be removed soon: mdn/webextensions-examples#398

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

No branches or pull requests

2 participants