diff options
author | Abinoam Praxedes Marques Jr <abinoam@gmail.com> | 2015-06-17 22:00:34 -0300 |
---|---|---|
committer | Abinoam Praxedes Marques Jr <abinoam@gmail.com> | 2015-06-17 22:00:34 -0300 |
commit | 4d8dc67327a64ceb1e361c39b2006b8f70e7d981 (patch) | |
tree | 9a24ab81154ace1b06e1d82c2990feebbe5c814e | |
parent | 4081a804495034217a63eb90bf80c0a6f290fb34 (diff) | |
download | highline-4d8dc67327a64ceb1e361c39b2006b8f70e7d981.tar.gz |
Add SimpleCov support
As suggested by @maurogeorge at https://github.com/JEG2/highline/pull/140#issuecomment-112963251
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Gemfile | 3 | ||||
-rw-r--r-- | test/test_helper.rb | 5 | ||||
-rwxr-xr-x | test/test_highline.rb | 3 | ||||
-rw-r--r-- | test/test_list.rb | 1 |
5 files changed, 11 insertions, 2 deletions
@@ -1,3 +1,4 @@ doc pkg .DS_Store +coverage @@ -8,4 +8,5 @@ group :development, :test do gem "minitest", require: false end -gem "codeclimate-test-reporter", group: :test, require: false
\ No newline at end of file +gem "codeclimate-test-reporter", group: :test, require: false +gem "simplecov", group: :test, require: false
\ No newline at end of file diff --git a/test/test_helper.rb b/test/test_helper.rb index 6068398..ac8e809 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,6 +1,11 @@ #!/usr/bin/env ruby # coding: utf-8 +require 'simplecov' +SimpleCov.start do + add_filter "test_" +end + require "codeclimate-test-reporter" CodeClimate::TestReporter.start diff --git a/test/test_highline.rb b/test/test_highline.rb index 779db3a..b3e822b 100755 --- a/test/test_highline.rb +++ b/test/test_highline.rb @@ -9,12 +9,13 @@ # This is Free Software. See LICENSE and COPYING for details. require "minitest/autorun" +require "test_helper" require "highline" require "stringio" require "readline" require "tempfile" -require "test_helper" + =begin if HighLine::CHARACTER_MODE == "Win32API" diff --git a/test/test_list.rb b/test/test_list.rb index 385e73d..c363642 100644 --- a/test/test_list.rb +++ b/test/test_list.rb @@ -3,6 +3,7 @@ require "minitest/autorun" require "test_helper" + require "highline/list" class TestHighLineList < Minitest::Test |