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

karma-phantomjs-launcher

Package Overview
Dependencies
Maintainers
4
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karma-phantomjs-launcher

A Karma plugin. Launcher for PhantomJS.

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
70K
decreased by-31.75%
Maintainers
4
Weekly downloads
 
Created

What is karma-phantomjs-launcher?

The karma-phantomjs-launcher is an npm package that allows you to use PhantomJS, a headless WebKit scriptable with a JavaScript API, as a browser for running tests with the Karma test runner. This is particularly useful for running tests in a continuous integration environment where you may not have access to a graphical browser.

What are karma-phantomjs-launcher's main functionalities?

Running Tests in a Headless Browser

This configuration file for Karma sets up PhantomJS as the browser for running tests. It uses the Jasmine framework and includes the necessary plugins for both Jasmine and PhantomJS.

module.exports = function(config) {
  config.set({
    browsers: ['PhantomJS'],
    frameworks: ['jasmine'],
    files: [
      'src/**/*.js',
      'test/**/*.spec.js'
    ],
    plugins: [
      'karma-jasmine',
      'karma-phantomjs-launcher'
    ]
  });
};

Continuous Integration Setup

This configuration is tailored for continuous integration environments. It uses the Mocha framework and sets the singleRun option to true, ensuring that Karma will run the tests once and then exit.

module.exports = function(config) {
  config.set({
    browsers: ['PhantomJS'],
    frameworks: ['mocha'],
    files: [
      'src/**/*.js',
      'test/**/*.spec.js'
    ],
    plugins: [
      'karma-mocha',
      'karma-phantomjs-launcher'
    ],
    singleRun: true
  });
};

Other packages similar to karma-phantomjs-launcher

Keywords

FAQs

Package last updated on 10 Mar 2017

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