Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Not maintained - Run subsets of your Jasmine specs by annotating them with tags.
JavaScript HTML
Branch: master
Failed to load latest commit information.
src doc fixes
test Initial commit
README.md Update README.md

README.md

Jasmine Tags

STATUS: Not maintained


A simple hack on top of Jasmine to add tag annotations to specs and run subsets of all specs.

Usage

Annotate describe and it blocks with tags:

tag('slow');
describe('some heavy lifiting your might want to skip some times', function() {
  tag('important');
  it('is very important', function() {
    ...
  });
});

Use multiple tags:

tags('focus', 'acceptance');
describe('some acceptance specs you are currently working on', function() {
  ...
});

Appending a query string parameter to your test runner filters specs by tags:

?tags=focus        # Run only specs with tag focus
?tags=!slow        # Run only specs which are not tagged with slow
?tags=focus,!slow  # Run only focus specs which are not slow

Maybe one day there will be a glossy interface to select tags in the spec runner.

Installation

Just link src/jasmine_tags.js from your jasmine spec runner.

License

Please fork and improve.

Copyright (c) 2011 Tim Fischbach. This software is licensed under the MIT License.

Something went wrong with that request. Please try again.