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-qunit-kimchi

v0.2.1

Published

Grunt QUnit Plugin with Screenshot Support and Style Regression Test.

Downloads

14

Readme

grunt-qunit-kimchi

Grunt QUnit Plugin with Screenshot Support and Style Regression Test.

| Circle CI | | --------- | | Circle CI |

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, as it explains how to create a Gruntfile as well as install and use Grunt plugins.

Install

$ npm install --save-dev grunt-qunit-kimchi

Usage

// Load the task
grunt.loadNpmTasks('grunt-phantomjs-basil');

// Configure
grunt.initConfig({
  qunit: {
    options: {
      urls: [
       'http://localhost:4100'
      ],
      screenshotOnFail: true,
      viewportSize: {
       width: 1100,
       height: 768
      },
      screenshotPath: '.tmp/screenshots',
      originalScreenshotPath: '.tmp/original_screenshots',
      diffScreenshotPath: '.tmp/diff_screenshots',
      errorDiffPath: '.tmp/screenshots/error',
      resemble: {
       errorType: 'movement'
      }
    }
  }
});

Qunit Task

Running task: grunt qunit

Options

urls

Type: Array Default: []

timeout

Type: Integer Default: 5000

viewportSize

Type: Object Default: phantomjs default

Overrides default viewport size of phantomjs (width: 320px) Example:

viewportSize: {
  width: 1100,
  height: 768
}

screenshotPath

Type: String Default: "screenshots"

Path where screenshots are saved within the root folder of the project

originalScreenshotPath

Type: String Default: "original_screenshots"

Path where original screenshots are stored within the root folder of the project to compare with the screenshots under screenshotPath

diffScreenshotPath

Type: String Default: "diff_screenshots"

Path where diff screenshots generated with resemble.js are saved within the root folder of the project

resemble

Type: Boolean or Object Default: false

Uses resemble.js for screenshot image analysis and comparison https://huddle.github.io/Resemble.js/

Example:

resemble: {
  errorColor: {
    red: 255,
    green: 0,
    blue: 255
  },
  errorType: 'movement' || 'flat',
  transparent: 1.0
}

inject

Type: String Default: (built in)

Path to alternate QUnit bridge to phantomjs. Default built in bridge script: bridge.js

consoleOutput

Type: Boolean Default: false

screenshotOnFail

Type: Boolean Default: false

httpBase

Type: String Default: false

Create URLs for the src files, all src files are prefixed with that base.

force

Type: Boolean Default: false

--PhantomJS arguments

Type: String Example:

options: {
  '--config': '/path/to/config.json'
  '--ssl-protocol': 'sslv3'
}

Usage Examples

TODO

Release History

v0.0.1 Initial Release