Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

hydro-focus

hydrojs45MIT0.2.1

Run only the first test with 'focus' tag

hydroplugin, hydro, focus

readme

NPM version Build Status

hydro-focus

Synopsis

Run only the first test with "focus" tag

Usage

Config:

hydro.set({
  plugins: ['hydro-focus']
});

With meta tag:

test('focus method on test', 'focus', function() {
});

By invoking a method:

test('focus method on test', function() {
}).focus();

Installation

npm:

npm install hydro-focus

component:

component install hydrojs/hydro-focus

standalone:

<script src="hydro-focus.js"></script>

Tests

$ npm test

License

The MIT License (see LICENSE)

changelog

0.2.1 / 2014-01-22

  • pull Test class of the constructor

0.2.0 / 2014-01-21

  • Add focus method on test classes

0.1.0 / 2014-01-02

  • API breaking - enable by default

0.0.2 / 2013-12-15

  • Fix bug where it will run more tests than desired

0.0.1 / 2013-12-14

  • Initial implementation