File tree Expand file tree Collapse file tree 5 files changed +64
-1
lines changed
Expand file tree Collapse file tree 5 files changed +64
-1
lines changed Original file line number Diff line number Diff line change 1+ version : 2.1
2+ orbs :
3+ ruby : circleci/ruby@0.1.2
4+
5+ jobs :
6+ build :
7+ docker :
8+ - image : circleci/ruby:2.6.3
9+ steps :
10+ - checkout
11+ - ruby/bundle-install
12+
13+
14+
15+ test : # our next job, called "test"
16+ # we run "parallel job containers" to enable speeding up our tests;
17+ # this splits our tests across multiple containers.
18+ parallelism : 3
19+ # here we set TWO docker images.
20+ docker :
21+ - image : circleci/ruby:2.6.3
22+
23+ environment :
24+ CC_TEST_REPORTER_ID : $CC_TEST_REPORTER_ID
25+ steps :
26+ - checkout
27+ - ruby/install-deps
28+
29+ - run :
30+ name : Setup dummy app
31+ command : cd spec/dummy && bin/setup
32+ - run :
33+ name : Setup Code Climate test-reporter
34+ command : |
35+ curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
36+ chmod +x ./cc-test-reporter
37+ - run :
38+ name : Test report
39+ command : cc-test-reporter before-build
40+ - run :
41+ name : Run tests
42+ command : bundle exec rspec
43+ - run :
44+ name : Test report
45+ command : |
46+ cc-test-reporter after-build
Original file line number Diff line number Diff line change @@ -5,4 +5,5 @@ spec/dummy/db/*.sqlite3
55spec /dummy /db /* .sqlite3-journal
66spec /dummy /log /* .log
77spec /dummy /tmp /
8- .byebug_history
8+ .byebug_history
9+ coverage /*
Original file line number Diff line number Diff line change 5757 concurrent-ruby (1.1.6 )
5858 crass (1.0.6 )
5959 diff-lcs (1.4.1 )
60+ docile (1.3.2 )
6061 erubi (1.9.0 )
6162 factory_bot (6.0.2 )
6263 activesupport (>= 5.0.0 )
7071 i18n (1.8.4 )
7172 concurrent-ruby (~> 1.0 )
7273 interception (0.5 )
74+ json (2.4.0 )
7375 jwt (2.2.1 )
7476 loofah (2.6.0 )
7577 crass (~> 1.0.2 )
137139 rspec-mocks (~> 3.9.0 )
138140 rspec-support (~> 3.9.0 )
139141 rspec-support (3.9.3 )
142+ simplecov (0.17.1 )
143+ docile (~> 1.1 )
144+ json (>= 1.8 , < 3 )
145+ simplecov-html (~> 0.10.0 )
146+ simplecov-html (0.10.2 )
147+ simplecov_json_formatter (0.1.2 )
140148 sprockets (4.0.2 )
141149 concurrent-ruby (~> 1.0 )
142150 rack (> 1 , < 3 )
@@ -167,6 +175,8 @@ DEPENDENCIES
167175 rake (~> 13.0 )
168176 rspec-rails (~> 3.0 )
169177 scim_rails !
178+ simplecov (< 0.18.0 )
179+ simplecov_json_formatter
170180 sqlite3 (~> 1.3.6 )
171181
172182RUBY VERSION
Original file line number Diff line number Diff line change @@ -31,4 +31,6 @@ Gem::Specification.new do |s|
3131 s . add_development_dependency "byebug"
3232 s . add_development_dependency "awesome_print"
3333 s . add_development_dependency "sqlite3" , "~> 1.3.6"
34+ s . add_development_dependency "simplecov" , "< 0.18.0"
35+ s . add_development_dependency "simplecov_json_formatter"
3436end
Original file line number Diff line number Diff line change 66require 'byebug'
77require 'awesome_print'
88require 'faker'
9+ require 'simplecov'
10+ require 'simplecov_json_formatter'
11+
12+ SimpleCov . start
913
1014Rails . backtrace_cleaner . remove_silencers!
1115
You can’t perform that action at this time.
0 commit comments