Class: CodeClimate::TestReporter
- Inherits:
-
Object
- Object
- CodeClimate::TestReporter
- Defined in:
- lib/codeclimate-test-reporter.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.0.1"
Class Method Summary collapse
Class Method Details
.run? ⇒ Boolean
158 159 160 |
# File 'lib/codeclimate-test-reporter.rb', line 158 def self.run? !!ENV["CODECLIMATE_REPO_TOKEN"] end |
.start ⇒ Object
147 148 149 150 151 152 153 154 155 156 |
# File 'lib/codeclimate-test-reporter.rb', line 147 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 |