Class: CodeClimate::TestReporter
- Inherits:
-
Object
- Object
- CodeClimate::TestReporter
- Defined in:
- lib/codeclimate-test-reporter.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.0.3"
Class Method Summary collapse
Class Method Details
.run? ⇒ Boolean
169 170 171 |
# File 'lib/codeclimate-test-reporter.rb', line 169 def self.run? !!ENV["CODECLIMATE_REPO_TOKEN"] end |
.start ⇒ Object
158 159 160 161 162 163 164 165 166 167 |
# File 'lib/codeclimate-test-reporter.rb', line 158 def self.start if run? require "simplecov" ::SimpleCov.add_filter 'vendor' ::SimpleCov.formatter = Formatter ::SimpleCov.start("test_frameworks") else puts("Not reporting to Code Climate because ENV['CODECLIMATE_REPO_TOKEN'] is not set.") end end |