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

grunt-parallel-spec-runner

v0.3.20

Published

Plugin used to configure and launch multiple spec

Downloads

44

Readme

grunt-parallel-spec-runner

Plugin used to configure and launch multiple spec runners in parallel.

Getting Started

Install the module with: npm install grunt-parallel-spec-runner

The "grunt-parallel-spec-runner" task

Overview

In your project's Gruntfile, add a section named grunt-parallel-spec-runner to the data object passed into grunt.initConfig().

grunt.initConfig
  parallel_spec_runner:
    your_target:
        options:
           specs:
           excludedSpecs:
           isolatedSpecs:

Options

options.specs

Type: String|Array

Your Jasmine specs.

options.excludedSpecs

Type: String|Array

Specifically excludes any spec files that were included via options.spec.

options.isolatedSpecs

Type: String|Array

Specifically isolate any spec files that were included via options.spec. This is useful to isolate specs that do not play well with others, in addition it can be faster to isolate very large spec files so that they run in their own webdriver/browser so they don't block other specs that run quickly. Spec files that take more than a couple of minutes to run in isolation should probably isolated.

Command-Line Options

--maxSpecRunners

Type: Number Default: 8 The maximum number of webdrivers/browsers allowed to run in parallel.

--maxSpecFilesPerRunner

Type: Number Default: 'Spec files are divided among the available runners e.g. Math.ceil(options.specs.length / options.maxSpecRunners)` The maximum number of spec files to be included per runner. e.g. --maxSpecFilesPerRunner=1 is equivalent to using --isolateAllSpecs.

--isolateAllSpecs=true

Type: Boolean Default: false

Sets the maximum number of spec files to be included per runner to 1: e.g. --maxSpecFilesPerRunner=1 This is useful to find specs that cannot run in isolation. NOTE: Grab some coffee... this will take a while, I suggest that you pipe the output to a file. e.g. grunt test:faster --isolateAllSpecs > results.txt

options.keepalive

Type: Boolean Default: false

Prevents _SpecRunner.*.html files from being deleted and leaves the express server running. This is useful for debugging so that individual spec files can be run again manually

options.verbose

Type: Boolean Default: false

Specify the --verbose options to generate the full output from all subtask. In addition the --verbose options will cause the result summary to include the list of spec files for each runner.

options.burnin

Type: String

Specify the --burnin options to run a single spec file 100 times in parallel, the results of each run will be output to a table this can be useful for finding flaky test NOTE: you must specify the full relative path to the spec file e.g. grunt test:faster:firefox --burnin=rui/test/javascripts/rui/ui/notify/NotificationContainerSpec.js

Output

Includes:

  • Generated runner files
  • Spec files per runner
  • Test per runner
  • Time in seconds per runner
  • Results per runner

Summary Row:

  • Total spec files
  • Total test run
  • Total time in seconds (this value reflects what the total test time would have been if the runners were not run in parallel)

Total Execution Time: The actual elapsed time to run all test in parallel

Normal output will includes the spec files that had failures in each runner:

Normal Output

Verbose output includes the specs files that were included in each runner:

Verbose Output

License

Copyright (c) 2015 Ronn McQueen Licensed under the MIT license.