karma-phantomjs-launcher

WebJar for karma-phantomjs-launcher

Лицензия

Лицензия

MIT
Категории

Категории

JavaScript Языки программирования Ant Компиляция и сборка
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

karma-phantomjs-launcher
Последняя версия

Последняя версия

1.0.4
Дата

Дата

Тип

Тип

jar
Описание

Описание

karma-phantomjs-launcher
WebJar for karma-phantomjs-launcher
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/karma-runner/karma-phantomjs-launcher

Скачать karma-phantomjs-launcher

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/karma-phantomjs-launcher/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>karma-phantomjs-launcher</artifactId>
    <version>1.0.4</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/karma-phantomjs-launcher/
implementation 'org.webjars.npm:karma-phantomjs-launcher:1.0.4'
// https://jarcasting.com/artifacts/org.webjars.npm/karma-phantomjs-launcher/
implementation ("org.webjars.npm:karma-phantomjs-launcher:1.0.4")
'org.webjars.npm:karma-phantomjs-launcher:jar:1.0.4'
<dependency org="org.webjars.npm" name="karma-phantomjs-launcher" rev="1.0.4">
  <artifact name="karma-phantomjs-launcher" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='karma-phantomjs-launcher', version='1.0.4')
)
libraryDependencies += "org.webjars.npm" % "karma-phantomjs-launcher" % "1.0.4"
[org.webjars.npm/karma-phantomjs-launcher "1.0.4"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.webjars.npm : lodash jar [4.0.1,5)
org.webjars.npm : phantomjs-prebuilt jar [2.1.7,3)

Модули Проекта

Данный проект не имеет модулей.

karma-phantomjs-launcher

js-standard-style npm version npm downloads

Build Status Dependency Status devDependency Status

Launcher for PhantomJS.

Installation

The easiest way is to keep karma-phantomjs-launcher as a devDependency in your package.json, by running

$ npm install --save-dev karma-phantomjs-launcher

Configuration

// karma.conf.js
module.exports = function(config) {
  config.set({
    browsers: ['PhantomJS', 'PhantomJS_custom'],

    // you can define custom flags
    customLaunchers: {
      'PhantomJS_custom': {
        base: 'PhantomJS',
        options: {
          windowName: 'my-window',
          settings: {
            webSecurityEnabled: false
          },
        },
        flags: ['--load-images=true'],
        debug: true
      }
    },

    phantomjsLauncher: {
      // Have phantomjs exit if a ResourceError is encountered (useful if karma exits without killing phantom)
      exitOnResourceError: true
    }
  })
}

The options attribute allows you to initialize properties on the phantomjs page object, so

options: {
  windowName: 'my-window',
  settings: {
    webSecurityEnabled: false
  },
}

is equivalent to:

var webPage = require('webpage')
var page = webPage.create()

page.windowName = 'my-window'
page.settings.webSecurityEnabled = false

You can pass list of browsers as a CLI argument too:

$ karma start --browsers PhantomJS_custom

If you set the debug option to true, you will be instructed to launch a web browser to bring up the debugger. Note that you will want to put debugger; statements in your JavaScript to hit breakpoints. You should be able to put breakpoints in both your test code and your client code. Note that the debug option automatically adds the --remote-debugger-port=9000 and --remote-debugger-autorun=yes switches to PhantomJS.


For more information on Karma see the homepage.

org.webjars.npm

Karma

The Spectacular Test Runner for JavaScript.

Версии библиотеки

Версия
1.0.4
1.0.2
1.0.1
1.0.0
0.2.1