npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

gulp-protractor-burked

v0.0.1

Published

A helper for protactor and gulp forked by bullgare

Downloads

3

Readme

gulp-protractor NPM version Build Status Dependency Status

Run your angular protractor tests with gulp

Usage

First, install gulp-protractor AND protractor as a development dependency:

npm install --save-dev gulp-protractor protractor

Then, add it to your gulpfile.js:

var protractor = require("gulp-protractor").protractor;

gulp.src(["./src/tests/*.js"])
	.pipe(protractor({
		configFile: "test/protractor.config.js",
		args: ['--baseUrl', 'http://127.0.0.1:8000']
	}))	
	.on('error', function(e) { throw e })

Protractor Webdriver

You have to update and start a standalone selenium server. Please read the offical instructions.

You can also ensure that the driver is installed by using the webdriver_update task. Have a look at the example folder.

You have 2 options to start the selenium server.

The first one is to let Protractor handle it automatically, including stopping it once your tests are done.
To do that, simply point to the selenium jar in the protractor config file (you will need to update the version number accordingly) instead of the address:

  // The file path to the selenium server jar ()
  seleniumServerJar: './node_modules/protractor/selenium/selenium-server-standalone-2.39.0.jar',
  // seleniumAddress: 'http://localhost:4444/wd/hub',

The second option is to let the gulp task handle it with the built-in webdriver snippet.
If you decide to start it that way, the task will keep running indefintely.

var webdriver_standalone = require("gulp-protractor").webdriver_standalone;
gulp.task('webdriver_standalone', webdriver_standalone);

API

protractor(options)

options.configFile

Type: String
Default: null

The path to your protractor config

options.args

Type: Array
Default: []

Arguments get passed directly to the protractor call Read the docs for more information

options.debug

Type: Boolean Default: false

Enables Protractor's debug mode, which can be used to pause tests during execution and to view stack traces.

webdriver_update(options)

options.browsers

Type: Array Default: ["ie", "chrome"]

options.out_dir

Type: String Default: null

Where to store webdriver. Example:

var path = require('path'),
	...
	webdriver_update = require("gulp-protractor").webdriver_update;

gulp.task('webdriver-update', function (callback) {
	webdriver_update({
		out_dir: path.resolve(pathRoot)
	}, callback);
});

options.args

Type: Array|Object Default: []

Arguments get passed directly to the webdriver-manager call.

Example 1:

var path = require('path'),
	...
	webdriver_update = require("gulp-protractor").webdriver_update;

gulp.task('webdriver-update', function (callback) {
	webdriver_update({
		args: {
			out_dir: path.resolve(pathRoot)
		}
	}, callback);
});

Example 2:

var path = require('path'),
	...
	webdriver_update = require("gulp-protractor").webdriver_update;

gulp.task('webdriver-update', function (callback) {
	webdriver_update({
		args: [
			'--out_dir=' + path.resolve(pathRoot) + ''
		]
	}, callback);
});

License

MIT License