This repository has been archived by the owner. It is now read-only.
An example of how to test and organize a chrome extension
JavaScript Ruby HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
spec
.gitignore
Gemfile
Gemfile.lock
README.md
circle.yml
gulpfile.babel.js
karma.conf.js
package.json

README.md

Testable Chrome Extension Example

An example of how to design a testable and modularized Chrome extension.

Getting Started

To set up the build environment, run npm install, then bundle install.

Running Specs

Run gulp to build the extension, then run unit and integration tests.

How it works

If you haven't already, be sure to read our blog post on how to design a testable Chrome Extension.

This extension is built using Gulp. Because of this, we can split our extension into multiple modules, then concatenate them at build time.

Unit tests are run by concatenating the background script and the Jasmine spec files, then running them with Karma. Integration tests are run by installing the extension on a Watir browser, then running Rspec tests on the browser.

CircleCI