Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Badge not generating when tests are run using rspec parallel gem #21

Open
AJ-Ayush opened this issue Nov 9, 2023 · 0 comments
Open

Comments

@AJ-Ayush
Copy link

AJ-Ayush commented Nov 9, 2023

I'm using the following rake task to merge results of different test runs, and generate HTML report of simplecov coverage -

namespace :coverage do
  desc "Collates all result sets generated by the different test runners"
  task :report do
    require 'simplecov'
    require 'simplecov_small_badge'

    # Collate coverage results using SimpleCov
    SimpleCov.collate Dir["test/simplecov-resultset-*/.resultset.json"], 'rails' do
      formatter SimpleCov::Formatter::MultiFormatter.new(
        [
          SimpleCov::Formatter::SimpleFormatter,
          SimpleCov::Formatter::HTMLFormatter,
          SimpleCovSmallBadge::Formatter,
        ]
      )
    end
  end
end

The combined coverage report is generated fine, but the badge is not being generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant