Skip to content

Commit 4bd6c13

Browse files
committed
Setup test coverage
1 parent 2b2cba7 commit 4bd6c13

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# Ignore RSpec examples
22
spec/examples.txt
3+
4+
# Ignore simplecov coverage report files
5+
coverage

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
language: ruby
22
script:
33
- bundle exec rspec
4+
cache: bundler
5+
addons:
6+
code_climate:
7+
repo_token: 6a7954340b6bc12e5818877eecebc92c334a3b9fac45a9bcece948d31be4f07e
8+
# regular test configuration
9+
after_success:
10+
- bundle exec codeclimate-test-reporter

spec/spec_helper.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
require "simplecov"
2+
SimpleCov.start
3+
14
# This file was generated by the `rspec --init` command. Conventionally, all
25
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
36
# The generated `.rspec` file contains `--require spec_helper` which will cause
@@ -96,5 +99,5 @@
9699
# test failures related to randomization by passing the same `--seed` value
97100
# as the one that triggered the failure.
98101
Kernel.srand config.seed
99-
102+
100103
end

0 commit comments

Comments
 (0)