WebExtensions: automated tests / testing?

I’m updating an Add-on SDK add-on to WebExtensions and wondering about how to set up automated tests. The jpm tool had support for running tests, but I don’t see anything like that with the new web-ext tool. Any pointers or recommendations on this? (Might be a good post for the hacks blog.)

2 Likes

There’s this:

https://github.com/acvetkov/sinon-chrome

But I have no clue how to get it to work.

1 Like

There are open tickets regarding web-ext and tests:

That being said, you can just run tests manually or as a part of your build pipeline.
Code examples:

Thanks for these pointers! I searched in bugzilla but not on github so I missed those issues before.