Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-jasmine-firefoxaddon

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-jasmine-firefoxaddon

Grunt task to run jasmine tests in a firefox addon

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
Maintainers
2
Weekly downloads
 
Created
Source

grunt-jasmine-firefoxaddon

Run jasmine specs in a Firefox Addon

Getting Started

This plugin requires Grunt ~0.4.0

If you haven't used Grunt before, be sure to check out the Getting Started guide, which explains how to create your grunt file. Once you're familiar with the process, this plugin can be installed as:

npm install grunt-jasmine-firefoxaddon --save-dev

Once the plugin has been installed, it may be enabled with this line of JavaScript:

grunt.loadNpmTasks('grunt-jasmine-firefoxaddon');

Jasmine Task

Run this task with the grunt jasmine_firefoxaddon command.

Automatically builds and maintains the spec runner and reports results back to the grunt console. Uses jpm provided by mozilla to run a dynamically constructed firefox addon that runs jasmine specs by using browserify. Allows for copying and loading of custom .jsm files.

Note that if your addon needs to access other resources, you will need to make the files available (e.g. with grunt-contrib-copy) under the path .build/data/... and then access them in your addon with the path jid1-mkagayemb0e5nq-at-jetpack/data/... (you can also use self.data.url(...) if the self API is available to you). This is due to the structure of Firefox addons - future iterations of this tool may be able to make the process smoother.

Customize your SpecRunner

Use your own files in the app to customize your tests.

Options

tests

Type: String|Array

The spec files you want to run.

helpers

Type: String|Array

Custom JavaScript module (.jsm) files you wish you load into your addon during test.

options.timeout

Type: Number Default: 10000

How many milliseconds to wait for the browser to start up before failing.

Keywords

FAQs

Package last updated on 27 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc