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 = jasminegetEnvjasmineEnvsetIncludedTags"browser" # By default untagged specs are run, uncomment to change that behavior # jasmineEnv.includeSpecsWithoutTags(false)