Skip to content

Commit

Permalink
Maintenance: switch from Coveralls to Codecov (#1531)
Browse files Browse the repository at this point in the history
* Remove Coveralls from test helper and gems

* Bye bye Coveralls

* Remove Coveralls token step

* Change badge
  • Loading branch information
ArtOfCode- authored Feb 16, 2025
1 parent 41768be commit 9122bcb
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 24 deletions.
11 changes: 3 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
version: 2.1
orbs:
codecov: codecov/codecov@5
jobs:
test-ruby31:
docker:
Expand Down Expand Up @@ -56,10 +58,6 @@ jobs:
name: Current revision
command: |
git rev-parse $(git rev-parse --abbrev-ref HEAD)
- run:
name: Coveralls token
command: |
if [ -z "$COVERALLS_REPO_TOKEN" ]; then echo "Skipping coveralls"; else echo "repo_token: $COVERALLS_REPO_TOKEN" > .coveralls.yml; fi
- run:
name: Test
command: |
Expand Down Expand Up @@ -188,16 +186,13 @@ jobs:
name: Current revision
command: |
git rev-parse $(git rev-parse --abbrev-ref HEAD)
- run:
name: Coveralls token
command: |
if [ -z "$COVERALLS_REPO_TOKEN" ]; then echo "Skipping coveralls"; else echo "repo_token: $COVERALLS_REPO_TOKEN" > .coveralls.yml; fi
- run:
name: Test
command: |
bundle exec rails test
- store_test_results:
path: "~/qpixel/test/reports"
- codecov/upload
system-test-ruby32:
docker:
- image: cimg/ruby:3.2-browsers
Expand Down
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ gem 'whenever', '~> 1.0', require: false

# Debugging, linting, testing.
gem 'awesome_print', '~> 1.9'
gem 'coveralls', '~> 0.8', require: false
gem 'rubocop', '~> 1'
gem 'rubocop-rails', '~> 2.15'

Expand Down Expand Up @@ -84,6 +83,8 @@ group :test do
gem 'minitest', '~> 5.16.0'
gem 'minitest-ci', '~> 3.4.0'
gem 'rails-controller-testing', '~> 1.0'
gem 'simplecov', '~> 0.21'
gem 'simplecov_json_formatter', '~> 0.1'
gem 'term-ansicolor', '~> 1.7'

gem 'capybara', '~> 3.38'
Expand Down
20 changes: 8 additions & 12 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,6 @@ GEM
counter_culture (3.2.1)
activerecord (>= 4.2)
activesupport (>= 4.2)
coveralls (0.8.23)
json (>= 1.8, < 3)
simplecov (~> 0.16.1)
term-ansicolor (~> 1.3)
thor (>= 0.19.4, < 2.0)
tins (~> 1.6)
crass (1.0.6)
css_parser (1.16.0)
addressable
Expand All @@ -143,7 +137,7 @@ GEM
devise (> 2.0.0)
ruby-saml (~> 1.7)
diffy (3.4.2)
docile (1.4.0)
docile (1.4.1)
e2mmap (0.1.0)
erubi (1.13.0)
execjs (2.8.1)
Expand Down Expand Up @@ -341,11 +335,12 @@ GEM
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
simplecov (0.16.1)
simplecov (0.22.0)
docile (~> 1.1)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.13.1)
simplecov_json_formatter (0.1.4)
spring (4.0.0)
sprockets (4.1.1)
concurrent-ruby (~> 1.0)
Expand Down Expand Up @@ -413,7 +408,6 @@ DEPENDENCIES
coffee-rails (~> 5.0.0)
commonmarker (~> 0.23)
counter_culture (~> 3.2)
coveralls (~> 0.8)
devise (~> 4.8)
devise_saml_authenticatable (~> 1.9)
diffy (~> 3.4)
Expand Down Expand Up @@ -449,6 +443,8 @@ DEPENDENCIES
ruby-progressbar (~> 1.11)
sass-rails (~> 6.0)
selenium-webdriver (~> 4.7)
simplecov (~> 0.21)
simplecov_json_formatter (~> 0.1)
spring (~> 4.0)
sprockets (~> 4.1.0)
sprockets-rails (~> 3.4)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<br>
<p align="center">
<a href="https://circleci.com/gh/codidact/qpixel"><img src="https://circleci.com/gh/codidact/qpixel.svg?style=svg" alt="CircleCI Build Status"></a>
<a href="https://coveralls.io/github/codidact/qpixel"><img src="https://coveralls.io/repos/github/codidact/qpixel/badge.svg" alt="Coverage Status"></a>
<a href="https://codecov.io/gh/codidact/qpixel"><img src="https://codecov.io/gh/codidact/qpixel/graph/badge.svg?token=RM60WJLP1V" alt="Coverage Status"/></a>
<a href="https://zenodo.org/badge/latestdoi/237078806"><img src="https://zenodo.org/badge/237078806.svg" alt="DOI"></a>
</p>

Expand Down
6 changes: 4 additions & 2 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
require 'coveralls'
Coveralls.wear!('rails')
require 'simplecov'
require 'simplecov_json_formatter'
SimpleCov.formatter = SimpleCov::Formatter::JSONFormatter
SimpleCov.start 'rails'

ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../config/environment', __dir__)
Expand Down

0 comments on commit 9122bcb

Please sign in to comment.