1.1.1 • Published 5 years ago

jasmine2-tagged v1.1.1

Weekly downloads
725
License
MIT
Repository
github
Last release
5 years ago

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)