Skip to content

Commit

Permalink
Add support for test coverage
Browse files Browse the repository at this point in the history
Add configuration for coveralls.io and include coverage badge in README.
  • Loading branch information
mnuessler committed Mar 19, 2015
1 parent df0c516 commit e1ad040
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
source 'https://rubygems.org'

# Specify your gem's dependencies in jekyll-asciinema.gemspec
gemspec

group :test do
gem 'coveralls', require: false
end
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Jekyll::Asciinema

[![Build Status](https://travis-ci.org/mnuessler/jekyll-asciinema.svg?branch=master)](https://travis-ci.org/mnuessler/jekyll-asciinema)
[![Coverage Status](https://coveralls.io/repos/mnuessler/jekyll-asciinema/badge.svg)](https://coveralls.io/r/mnuessler/jekyll-asciinema)

Provides a Liquid tag for embedding asciicasts recorded with
[asciinema](https://asciinema.org/) for use in Jekyll sites.
Expand Down
5 changes: 5 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'jekyll/asciinema'

if ENV['TRAVIS']
require 'coveralls'
Coveralls.wear!
end

TEST_DIR = File.dirname(__FILE__)
TMP_DIR = File.expand_path("../tmp", TEST_DIR)

Expand Down

0 comments on commit e1ad040

Please sign in to comment.