Set cobertura as simplecove formatter in github actions
This commit is contained in:
parent
85ac373cb1
commit
2b0a257090
4 changed files with 12 additions and 10 deletions
1
.github/workflows/spec.yml
vendored
1
.github/workflows/spec.yml
vendored
|
|
@ -49,3 +49,4 @@ jobs:
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
with:
|
with:
|
||||||
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
||||||
|
coverage-reports: coverage/coverage.xml
|
||||||
|
|
|
||||||
2
Gemfile
2
Gemfile
|
|
@ -245,7 +245,7 @@ group :test do
|
||||||
gem 'transactional_capybara'
|
gem 'transactional_capybara'
|
||||||
gem 'webdrivers'
|
gem 'webdrivers'
|
||||||
# for measuring test coverage
|
# for measuring test coverage
|
||||||
gem 'codecov', require: false
|
gem 'simplecov-cobertura'
|
||||||
# for describing models
|
# for describing models
|
||||||
gem 'shoulda-matchers', require: false
|
gem 'shoulda-matchers', require: false
|
||||||
# for stubing/mocking models
|
# for stubing/mocking models
|
||||||
|
|
|
||||||
13
Gemfile.lock
13
Gemfile.lock
|
|
@ -128,9 +128,6 @@ GEM
|
||||||
aws_cf_signer
|
aws_cf_signer
|
||||||
rest-client
|
rest-client
|
||||||
cocoon (1.2.14)
|
cocoon (1.2.14)
|
||||||
codecov (0.2.11)
|
|
||||||
json
|
|
||||||
simplecov
|
|
||||||
coderay (1.1.1)
|
coderay (1.1.1)
|
||||||
concurrent-ruby (1.1.8)
|
concurrent-ruby (1.1.8)
|
||||||
connection_pool (2.2.2)
|
connection_pool (2.2.2)
|
||||||
|
|
@ -164,7 +161,7 @@ GEM
|
||||||
devise_ichain_authenticatable (0.3.2)
|
devise_ichain_authenticatable (0.3.2)
|
||||||
devise (>= 2.2)
|
devise (>= 2.2)
|
||||||
diff-lcs (1.3)
|
diff-lcs (1.3)
|
||||||
docile (1.3.2)
|
docile (1.3.5)
|
||||||
domain_name (0.5.20180417)
|
domain_name (0.5.20180417)
|
||||||
unf (>= 0.0.5, < 1.0.0)
|
unf (>= 0.0.5, < 1.0.0)
|
||||||
dotenv (2.7.5)
|
dotenv (2.7.5)
|
||||||
|
|
@ -530,10 +527,14 @@ GEM
|
||||||
shellany (0.0.1)
|
shellany (0.0.1)
|
||||||
shoulda-matchers (4.1.2)
|
shoulda-matchers (4.1.2)
|
||||||
activesupport (>= 4.2.0)
|
activesupport (>= 4.2.0)
|
||||||
simplecov (0.19.0)
|
simplecov (0.21.2)
|
||||||
docile (~> 1.1)
|
docile (~> 1.1)
|
||||||
simplecov-html (~> 0.11)
|
simplecov-html (~> 0.11)
|
||||||
|
simplecov_json_formatter (~> 0.1)
|
||||||
|
simplecov-cobertura (1.4.2)
|
||||||
|
simplecov (~> 0.8)
|
||||||
simplecov-html (0.12.3)
|
simplecov-html (0.12.3)
|
||||||
|
simplecov_json_formatter (0.1.2)
|
||||||
sixarm_ruby_unaccent (1.2.0)
|
sixarm_ruby_unaccent (1.2.0)
|
||||||
skylight (3.1.5)
|
skylight (3.1.5)
|
||||||
skylight-core (= 3.1.5)
|
skylight-core (= 3.1.5)
|
||||||
|
|
@ -633,7 +634,6 @@ DEPENDENCIES
|
||||||
climate_control
|
climate_control
|
||||||
cloudinary
|
cloudinary
|
||||||
cocoon
|
cocoon
|
||||||
codecov
|
|
||||||
countable-rails
|
countable-rails
|
||||||
country_select
|
country_select
|
||||||
daemons
|
daemons
|
||||||
|
|
@ -706,6 +706,7 @@ DEPENDENCIES
|
||||||
sass-rails (>= 4.0.2)
|
sass-rails (>= 4.0.2)
|
||||||
selectize-rails
|
selectize-rails
|
||||||
shoulda-matchers
|
shoulda-matchers
|
||||||
|
simplecov-cobertura
|
||||||
skylight
|
skylight
|
||||||
spring-commands-rspec
|
spring-commands-rspec
|
||||||
sprockets-rails
|
sprockets-rails
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,9 @@
|
||||||
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
||||||
require 'simplecov'
|
require 'simplecov'
|
||||||
|
|
||||||
if ENV['TRAVIS']
|
if ENV['GITHUB_ACTIONS']
|
||||||
require 'codecov'
|
require 'simplecov-cobertura'
|
||||||
SimpleCov.formatter = SimpleCov::Formatter::Codecov
|
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
|
||||||
end
|
end
|
||||||
SimpleCov.start 'rails'
|
SimpleCov.start 'rails'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue