Skip to content
This repository was archived by the owner on Jun 23, 2018. It is now read-only.

An example of how to test and organize a chrome extension

Notifications You must be signed in to change notification settings

tinfoil/testable-chrome-extension-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An example of how to test and organize a chrome extension

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published