]> git.openstreetmap.org Git - rails.git/blobdiff - test/test_helper.rb
Output both the local simplecov html and the coveralls report
[rails.git] / test / test_helper.rb
index 747edf016056b30c7a0e10b347ed72cc4ec9b466..d44fcd2538aeb502d8313a20ba29b5edb8757eeb 100644 (file)
@@ -1,6 +1,12 @@
 require "coveralls"
 Coveralls.wear!("rails")
 
+# Output both the local simplecov html and the coveralls report
+SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new(
+  [SimpleCov::Formatter::HTMLFormatter,
+   Coveralls::SimpleCov::Formatter]
+)
+
 ENV["RAILS_ENV"] = "test"
 require_relative "../config/environment"
 require "rails/test_help"