This gem adds blanket code coverage support to the jasmine-rails gem's test runner page. The code coverage details appear below the test results when you access the jasmine specs page.
Add this line to your application's Gemfile in the development/test group:
gem 'jasmine-rails-blanket'
And then execute:
$ bundle
Or install it yourself as:
$ gem install jasmine-rails-blanket
Add the following to your jasmine.yml file
blanketjs_coverage:
enabled: true
You can also include any of the config items supported by blanketjs (see blanket's config.js for options) - just leave off the 'data-' prefixes and add them to a config key under the blanketjs_coverage key
Example:
blanketjs_coverage:
enabled: true
config:
cover-only: "assets_dev/app/"
cover-flags: "debug"
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request