jasmine2-tagged

1.1.1 • Public • Published

Build Status Windows Build Status

Jasmine 2.x-3.x Tagged

This is similar to jasmine-tagged except it works with Jasmine 2.x or 3.x

Jasmine Tagged

Allows for tagging and filtering of specific Jasmine specs depending on the platform.

Installing

npm install jasmine2-tagged

Building

  • Clone the repository
  • Run npm install
  • Run grunt to compile the CoffeeScript

Using

  describe "Javascript"->
    describe "on the #server"->
      it "can access files"
    describe "on the #browser"->
      it "can access localstorage"

In jasmine-helper.js

require 'jasmine2-tagged'
 
jasmineEnv = jasmine.getEnv()
jasmineEnv.setIncludedTags(["browser"])
 
# By default untagged specs are run, uncomment to change that behavior 
# jasmineEnv.includeSpecsWithoutTags(false) 

Readme

Keywords

Package Sidebar

Install

npm i jasmine2-tagged

Weekly Downloads

22

Version

1.1.1

License

MIT

Unpacked Size

8.9 kB

Total Files

13

Last publish

Collaborators

  • tonybrix