https://github.com/tf/jasmine_tags
Not maintained - Run subsets of your Jasmine specs by annotating them with tags.
https://github.com/tf/jasmine_tags
Last synced: over 1 year ago
JSON representation
Not maintained - Run subsets of your Jasmine specs by annotating them with tags.
- Host: GitHub
- URL: https://github.com/tf/jasmine_tags
- Owner: tf
- Created: 2011-08-25T20:23:03.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2015-07-30T16:24:51.000Z (almost 11 years ago)
- Last Synced: 2025-01-30T18:43:33.694Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 141 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Jasmine Tags
**STATUS: Not maintained**
---
A simple hack on top of [Jasmine](https://github.com/pivotal/jasmine)
to add tag annotations to specs and run subsets of all specs.
### Usage
Annotate `describe` and `it` blocks with tags:
```javsscript
tag('slow');
describe('some heavy lifiting your might want to skip some times', function() {
tag('important');
it('is very important', function() {
...
});
});
```
Use multiple tags:
```javsscript
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.