Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

No source files were found in the test report payload #32

@lanrion

Description

@lanrion

Hi, I using

group :test do
  gem 'simplecov', '~> 0.7.1', :require => false
  gem "codeclimate-test-reporter", require: nil
  gem 'coveralls', require: false
end

in the spec_helper.rb, I config:

require 'coveralls'
require 'simplecov'
require "codeclimate-test-reporter"

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
  SimpleCov::Formatter::HTMLFormatter,
  Coveralls::SimpleCov::Formatter
]

SimpleCov.start

ENV['CODECLIMATE_REPO_TOKEN'] = "c91fecbbd9e414e7cc3ad7a7d99207145de0ac65a3368de09e8c19295343d399"
CodeClimate::TestReporter.start

but it raise an exception:

Finished in 35.86 seconds
26 examples, 0 failures, 3 pending
Coverage = 100.0%. Code Climate encountered an exception: CodeClimate::TestReporter::InvalidPayload
No source files were found in the test report payload
/home/lanrion/.rvm/gems/ruby-2.0.0-p451/gems/codeclimate-test-reporter-0.3.0/lib/code_climate/test_reporter/payload_validator.rb:18:in `validate'
/home/lanrion/.rvm/gems/ruby-2.0.0-p451/gems/codeclimate-test-reporter-0.3.0/lib/code_climate/test_reporter/payload_validator.rb:11:in `validate'
/home/lanrion/.rvm/gems/ruby-2.0.0-p451/gems/codeclimate-test-reporter-0.3.0/lib/code_climate/test_reporter/formatter.rb:17:in `format'
/home/lanrion/.rvm/gems/ruby-2.0.0-p451/gems/simplecov-0.8.2/lib/simplecov/result.rb:46:in `format!'
/home/lanrion/.rvm/gems/ruby-2.0.0-p451/gems/simplecov-0.8.2/lib/simplecov/configuration.rb:139:in `block in at_exit'
/home/lanrion/.rvm/gems/ruby-2.0.0-p451/gems/simplecov-0.8.2/lib/simplecov/defaults.rb:54:in `call'
/home/lanrion/.rvm/gems/ruby-2.0.0-p451/gems/simplecov-0.8.2/lib/simplecov/defaults.rb:54:in `block in <top (required)>'

What is the meaning of "No source files were found in the test report payload" ?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions