add code coverage reporting

parent 9aaf58de
...@@ -289,6 +289,9 @@ group :test do ...@@ -289,6 +289,9 @@ group :test do
gem "shoulda-matchers", "3.1.1" gem "shoulda-matchers", "3.1.1"
gem "diaspora_federation-test", "0.1.1" gem "diaspora_federation-test", "0.1.1"
# Coverage
gem 'coveralls', require: false
end end
group :development, :test do group :development, :test do
......
...@@ -135,6 +135,12 @@ GEM ...@@ -135,6 +135,12 @@ GEM
concurrent-ruby (1.0.2) concurrent-ruby (1.0.2)
configurate (0.3.1) configurate (0.3.1)
connection_pool (2.2.0) connection_pool (2.2.0)
coveralls (0.8.13)
json (~> 1.8)
simplecov (~> 0.11.0)
term-ansicolor (~> 1.3)
thor (~> 0.19.1)
tins (~> 1.6.0)
crack (0.4.3) crack (0.4.3)
safe_yaml (~> 1.0.0) safe_yaml (~> 1.0.0)
cucumber (2.4.0) cucumber (2.4.0)
...@@ -825,6 +831,8 @@ GEM ...@@ -825,6 +831,8 @@ GEM
sysexits (1.2.0) sysexits (1.2.0)
systemu (2.6.5) systemu (2.6.5)
temple (0.7.7) temple (0.7.7)
term-ansicolor (1.3.2)
tins (~> 1.0)
terminal-table (1.6.0) terminal-table (1.6.0)
test_after_commit (1.0.0) test_after_commit (1.0.0)
activerecord (>= 3.2) activerecord (>= 3.2)
...@@ -917,6 +925,7 @@ DEPENDENCIES ...@@ -917,6 +925,7 @@ DEPENDENCIES
carrierwave (= 0.11.2) carrierwave (= 0.11.2)
compass-rails (= 2.0.5) compass-rails (= 2.0.5)
configurate (= 0.3.1) configurate (= 0.3.1)
coveralls
cucumber-api-steps (= 0.13) cucumber-api-steps (= 0.13)
cucumber-rails (= 1.4.3) cucumber-rails (= 1.4.3)
database_cleaner (= 1.5.3) database_cleaner (= 1.5.3)
......
...@@ -2,8 +2,10 @@ ...@@ -2,8 +2,10 @@
### A privacy-aware, distributed, open source social network ### A privacy-aware, distributed, open source social network
**master:** [![Build Status master](https://secure.travis-ci.org/diaspora/diaspora.png?branch=master)](http://travis-ci.org/diaspora/diaspora) **master:** [![Build Status master](https://secure.travis-ci.org/diaspora/diaspora.png?branch=master)](http://travis-ci.org/diaspora/diaspora)
**stable:** [![Build Status stable](https://secure.travis-ci.org/diaspora/diaspora.png?branch=stable)](http://travis-ci.org/diaspora/diaspora) | **stable:** [![Build Status stable](https://secure.travis-ci.org/diaspora/diaspora.png?branch=stable)](http://travis-ci.org/diaspora/diaspora)
**develop:** [![Build Status develop](https://secure.travis-ci.org/diaspora/diaspora.png?branch=develop)](http://travis-ci.org/diaspora/diaspora) | [![Coverage Status stable](https://coveralls.io/repos/github/diaspora/diaspora/badge.svg?branch=stable)](https://coveralls.io/github/diaspora/diaspora?branch=stable)|
**develop:** [![Build Status develop](https://secure.travis-ci.org/diaspora/diaspora.png?branch=develop)](http://travis-ci.org/diaspora/diaspora)
[![Coverage Status develop](https://coveralls.io/repos/github/diaspora/diaspora/badge.svg?branch=develop)](https://coveralls.io/github/diaspora/diaspora?branch=develop) |
[![Dependency Status](https://gemnasium.com/diaspora/diaspora.png?travis)](https://gemnasium.com/diaspora/diaspora) [![Dependency Status](https://gemnasium.com/diaspora/diaspora.png?travis)](https://gemnasium.com/diaspora/diaspora)
[![Code Climate](https://codeclimate.com/github/diaspora/diaspora.png)](https://codeclimate.com/github/diaspora/diaspora) [![Code Climate](https://codeclimate.com/github/diaspora/diaspora.png)](https://codeclimate.com/github/diaspora/diaspora)
......
...@@ -2,9 +2,12 @@ require "rubygems" ...@@ -2,9 +2,12 @@ require "rubygems"
ENV["RAILS_ENV"] ||= "test" ENV["RAILS_ENV"] ||= "test"
# Have all rests run with english browser locale # Have all rests run with english browser locale
ENV["LANG"] = "C" ENV["LANG"] = "C"
require 'coveralls'
Coveralls.wear!('rails')
require "cucumber/rails" require "cucumber/rails"
require "capybara/rails" require "capybara/rails"
......
...@@ -3,6 +3,10 @@ ...@@ -3,6 +3,10 @@
# the COPYRIGHT file. # the COPYRIGHT file.
ENV["RAILS_ENV"] ||= "test" ENV["RAILS_ENV"] ||= "test"
require 'coveralls'
Coveralls.wear!('rails')
require File.join(File.dirname(__FILE__), "..", "config", "environment") require File.join(File.dirname(__FILE__), "..", "config", "environment")
require Rails.root.join("spec", "helper_methods") require Rails.root.join("spec", "helper_methods")
require Rails.root.join("spec", "spec-doc") require Rails.root.join("spec", "spec-doc")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment