The project is in a healthy, maintained state
A program to convert json to xml test coverage format gem
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

Runtime

 Project Readme

branchcov-xmlruby-sonar

Coverage Status

下記をアプリ側のspec_helperに追加して使用してください

SimpleCov.start 'rails' do
  enable_coverage :branch

  add_filter '/spec/'
  add_filter '/config/'
  add_filter '/db/'
  add_filter '/vendor/'

  add_group 'Decorators', 'app/decorators'
  add_group 'Forms', 'app/forms'
  add_group 'Services', 'app/services'
  add_group 'ViewObjects', 'app/view_objects'
  add_group 'Batches', 'app/batches'

  merge_timeout 3600
end

simplecov.rakeを動かす際には、下記のようにディレクトリを作成してコピーする必要があります

# example of circleci/.config

- run:
  name: Stash coverage results
  command: |
    mkdir coverage_results
    cp -R coverage/.resultset.json coverage_results/.resultset-${CIRCLE_NODE_INDEX}.json || exit 0

Kibela page

Check this document for more configuration