Skip to content
This repository has been archived by the owner on Sep 4, 2023. It is now read-only.

UziTech/jasmine2-tagged

Repository files navigation

Actions 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)