Merge pull request #57 from blocknotes/test/setup-coverage

Test: setup coverage
Этот коммит содержится в:
Mattia Roccoberton
2025-03-22 09:14:34 +01:00
коммит произвёл GitHub
родитель 7d3a084977 dd9aa22cf5
Коммит 0ae4ce2035
15 изменённых файлов: 96 добавлений и 42 удалений

1
.gitignore поставляемый
Просмотреть файл

@@ -6,6 +6,7 @@
/Gemfile.lock
/_misc/
/coverage/
/spec/dummy/db/*.sqlite3*
/spec/dummy/log/
/spec/dummy/storage/

Просмотреть файл

@@ -9,6 +9,7 @@ if ENV['DEVEL'] == '1'
gem 'activeadmin', ENV.fetch('ACTIVEADMIN_VERSION')
gem 'activeadmin_quill_editor', path: './'
gem 'appraisal', '~> 2.4'
if rails_ver.start_with?('7.0')
gem 'concurrent-ruby', '1.3.4'
@@ -34,6 +35,7 @@ gem 'cuprite'
gem 'rspec_junit_formatter'
gem 'rspec-rails'
gem 'rspec-retry'
gem 'simplecov', require: false
# Linters
gem 'fasterer'

Просмотреть файл

@@ -2,6 +2,10 @@
source "https://rubygems.org"
gem "rails", "~> 6.1.0"
gem "activeadmin"
gem "activeadmin_quill_editor", path: "../"
gem "appraisal", "~> 2.4"
gem "sqlite3"
gem "bigdecimal"
gem "mutex_m"
@@ -13,6 +17,7 @@ gem "cuprite"
gem "rspec_junit_formatter"
gem "rspec-rails"
gem "rspec-retry"
gem "simplecov", require: false
gem "fasterer"
gem "rubocop"
gem "rubocop-capybara"
@@ -22,7 +27,3 @@ gem "rubocop-rails"
gem "rubocop-rspec"
gem "rubocop-rspec_rails"
gem "pry-rails"
gem "activeadmin"
gem "rails", "~> 6.1.0"
gemspec path: "../"

Просмотреть файл

@@ -104,6 +104,7 @@ GEM
ferrum (~> 0.14.0)
date (3.3.4)
diff-lcs (1.5.1)
docile (1.4.1)
erubi (1.12.0)
fasterer (0.11.0)
ruby_parser (>= 3.19.1)
@@ -158,6 +159,7 @@ GEM
matrix (0.4.2)
method_source (1.0.0)
mini_mime (1.1.5)
mini_portile2 (2.8.8)
minitest (5.22.2)
mutex_m (0.3.0)
net-imap (0.4.10)
@@ -170,11 +172,8 @@ GEM
net-smtp (0.4.0.1)
net-protocol
nio4r (2.7.0)
nokogiri (1.16.2-arm64-darwin)
racc (~> 1.4)
nokogiri (1.16.2-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.16.2-x86_64-linux)
nokogiri (1.16.2)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
parallel (1.24.0)
parser (3.3.0.5)
@@ -293,6 +292,12 @@ GEM
sassc (2.4.0)
ffi (~> 1.9)
sexp_processor (4.17.1)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.13.1)
simplecov_json_formatter (0.1.4)
sprockets (4.2.1)
concurrent-ruby (~> 1.0)
rack (>= 2.2.4, < 4)
@@ -300,9 +305,8 @@ GEM
actionpack (>= 5.2)
activesupport (>= 5.2)
sprockets (>= 3.0.0)
sqlite3 (1.7.2-arm64-darwin)
sqlite3 (1.7.2-x86_64-darwin)
sqlite3 (1.7.2-x86_64-linux)
sqlite3 (1.7.2)
mini_portile2 (~> 2.8.0)
thor (1.3.0)
timeout (0.4.1)
tzinfo (2.0.6)
@@ -345,6 +349,7 @@ DEPENDENCIES
rubocop-rspec
rubocop-rspec_rails
sassc
simplecov
sprockets-rails
sqlite3

Просмотреть файл

@@ -2,6 +2,10 @@
source "https://rubygems.org"
gem "rails", "~> 6.1.0"
gem "activeadmin", "~> 2.9.0"
gem "activeadmin_quill_editor", path: "../"
gem "appraisal", "~> 2.4"
gem "sqlite3"
gem "bigdecimal"
gem "mutex_m"
@@ -13,6 +17,7 @@ gem "cuprite"
gem "rspec_junit_formatter"
gem "rspec-rails"
gem "rspec-retry"
gem "simplecov", require: false
gem "fasterer"
gem "rubocop"
gem "rubocop-capybara"
@@ -22,7 +27,3 @@ gem "rubocop-rails"
gem "rubocop-rspec"
gem "rubocop-rspec_rails"
gem "pry-rails"
gem "activeadmin", "~> 2.9.0"
gem "rails", "~> 6.1.0"
gemspec path: "../"

Просмотреть файл

@@ -104,6 +104,7 @@ GEM
ferrum (~> 0.14.0)
date (3.3.4)
diff-lcs (1.5.1)
docile (1.4.1)
erubi (1.12.0)
fasterer (0.11.0)
ruby_parser (>= 3.19.1)
@@ -158,6 +159,7 @@ GEM
matrix (0.4.2)
method_source (1.0.0)
mini_mime (1.1.5)
mini_portile2 (2.8.8)
minitest (5.22.2)
mutex_m (0.3.0)
net-imap (0.4.10)
@@ -170,11 +172,8 @@ GEM
net-smtp (0.4.0.1)
net-protocol
nio4r (2.7.0)
nokogiri (1.16.2-arm64-darwin)
racc (~> 1.4)
nokogiri (1.16.2-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.16.2-x86_64-linux)
nokogiri (1.16.2)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
parallel (1.24.0)
parser (3.3.0.5)
@@ -293,6 +292,12 @@ GEM
sassc (2.4.0)
ffi (~> 1.9)
sexp_processor (4.17.1)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.13.1)
simplecov_json_formatter (0.1.4)
sprockets (4.2.1)
concurrent-ruby (~> 1.0)
rack (>= 2.2.4, < 4)
@@ -300,9 +305,8 @@ GEM
actionpack (>= 5.2)
activesupport (>= 5.2)
sprockets (>= 3.0.0)
sqlite3 (1.7.2-arm64-darwin)
sqlite3 (1.7.2-x86_64-darwin)
sqlite3 (1.7.2-x86_64-linux)
sqlite3 (1.7.2)
mini_portile2 (~> 2.8.0)
thor (1.3.0)
timeout (0.4.1)
tzinfo (2.0.6)
@@ -345,6 +349,7 @@ DEPENDENCIES
rubocop-rspec
rubocop-rspec_rails
sassc
simplecov
sprockets-rails
sqlite3

Просмотреть файл

@@ -2,7 +2,11 @@
source "https://rubygems.org"
gem "sqlite3"
gem "rails", "~> 7.0.0"
gem "activeadmin"
gem "activeadmin_quill_editor", path: "../"
gem "appraisal", "~> 2.4"
gem "sqlite3", "~> 1.3"
gem "bigdecimal"
gem "mutex_m"
gem "puma"
@@ -13,6 +17,7 @@ gem "cuprite"
gem "rspec_junit_formatter"
gem "rspec-rails"
gem "rspec-retry"
gem "simplecov", require: false
gem "fasterer"
gem "rubocop"
gem "rubocop-capybara"
@@ -22,7 +27,3 @@ gem "rubocop-rails"
gem "rubocop-rspec"
gem "rubocop-rspec_rails"
gem "pry-rails"
gem "activeadmin"
gem "rails", "~> 7.0.0"
gemspec path: "../"

Просмотреть файл

@@ -110,6 +110,7 @@ GEM
ferrum (~> 0.14.0)
date (3.3.4)
diff-lcs (1.5.1)
docile (1.4.1)
erubi (1.12.0)
fasterer (0.11.0)
ruby_parser (>= 3.19.1)
@@ -297,6 +298,12 @@ GEM
sassc (2.4.0)
ffi (~> 1.9)
sexp_processor (4.17.1)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.13.1)
simplecov_json_formatter (0.1.4)
sprockets (4.2.1)
concurrent-ruby (~> 1.0)
rack (>= 2.2.4, < 4)
@@ -347,8 +354,9 @@ DEPENDENCIES
rubocop-rspec
rubocop-rspec_rails
sassc
simplecov
sprockets-rails
sqlite3
sqlite3 (~> 1.3)
BUNDLED WITH
2.3.8

Просмотреть файл

@@ -2,6 +2,10 @@
source "https://rubygems.org"
gem "rails", "~> 7.1.0"
gem "activeadmin"
gem "activeadmin_quill_editor", path: "../"
gem "appraisal", "~> 2.4"
gem "sqlite3"
gem "bigdecimal"
gem "mutex_m"
@@ -13,6 +17,7 @@ gem "cuprite"
gem "rspec_junit_formatter"
gem "rspec-rails"
gem "rspec-retry"
gem "simplecov", require: false
gem "fasterer"
gem "rubocop"
gem "rubocop-capybara"
@@ -22,7 +27,3 @@ gem "rubocop-rails"
gem "rubocop-rspec"
gem "rubocop-rspec_rails"
gem "pry-rails"
gem "activeadmin"
gem "rails", "~> 7.1.0"
gemspec path: "../"

Просмотреть файл

@@ -127,6 +127,7 @@ GEM
ferrum (~> 0.15.0)
date (3.4.1)
diff-lcs (1.6.0)
docile (1.4.1)
drb (2.2.1)
erubi (1.13.1)
fasterer (0.11.0)
@@ -341,6 +342,12 @@ GEM
ffi (~> 1.9)
securerandom (0.4.1)
sexp_processor (4.17.3)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.13.1)
simplecov_json_formatter (0.1.4)
sprockets (4.2.1)
concurrent-ruby (~> 1.0)
rack (>= 2.2.4, < 4)
@@ -394,6 +401,7 @@ DEPENDENCIES
rubocop-rspec
rubocop-rspec_rails
sassc
simplecov
sprockets-rails
sqlite3

Просмотреть файл

@@ -2,6 +2,10 @@
source "https://rubygems.org"
gem "rails", "~> 7.2.0"
gem "activeadmin"
gem "activeadmin_quill_editor", path: "../"
gem "appraisal", "~> 2.4"
gem "sqlite3"
gem "bigdecimal"
gem "mutex_m"
@@ -13,6 +17,7 @@ gem "cuprite"
gem "rspec_junit_formatter"
gem "rspec-rails"
gem "rspec-retry"
gem "simplecov", require: false
gem "fasterer"
gem "rubocop"
gem "rubocop-capybara"
@@ -22,7 +27,3 @@ gem "rubocop-rails"
gem "rubocop-rspec"
gem "rubocop-rspec_rails"
gem "pry-rails"
gem "activeadmin"
gem "rails", "~> 7.2.0"
gemspec path: "../"

Просмотреть файл

@@ -121,6 +121,7 @@ GEM
ferrum (~> 0.15.0)
date (3.4.1)
diff-lcs (1.6.0)
docile (1.4.1)
drb (2.2.1)
erubi (1.13.1)
fasterer (0.11.0)
@@ -353,6 +354,12 @@ GEM
ffi (~> 1.9)
securerandom (0.4.1)
sexp_processor (4.17.3)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.13.1)
simplecov_json_formatter (0.1.4)
sprockets (4.2.1)
concurrent-ruby (~> 1.0)
rack (>= 2.2.4, < 4)
@@ -419,6 +426,7 @@ DEPENDENCIES
rubocop-rspec
rubocop-rspec_rails
sassc
simplecov
sprockets-rails
sqlite3

Просмотреть файл

@@ -2,6 +2,10 @@
source "https://rubygems.org"
gem "rails", "~> 8.0.0"
gem "activeadmin"
gem "activeadmin_quill_editor", path: "../"
gem "appraisal", "~> 2.4"
gem "sqlite3"
gem "bigdecimal"
gem "mutex_m"
@@ -13,6 +17,7 @@ gem "cuprite"
gem "rspec_junit_formatter"
gem "rspec-rails"
gem "rspec-retry"
gem "simplecov", require: false
gem "fasterer"
gem "rubocop"
gem "rubocop-capybara"
@@ -22,7 +27,3 @@ gem "rubocop-rails"
gem "rubocop-rspec"
gem "rubocop-rspec_rails"
gem "pry-rails"
gem "activeadmin"
gem "rails", "~> 8.0.0"
gemspec path: "../"

Просмотреть файл

@@ -121,6 +121,7 @@ GEM
ferrum (~> 0.15.0)
date (3.4.1)
diff-lcs (1.6.0)
docile (1.4.1)
drb (2.2.1)
erubi (1.13.1)
fasterer (0.11.0)
@@ -353,6 +354,12 @@ GEM
ffi (~> 1.9)
securerandom (0.4.1)
sexp_processor (4.17.3)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.13.1)
simplecov_json_formatter (0.1.4)
sprockets (4.2.1)
concurrent-ruby (~> 1.0)
rack (>= 2.2.4, < 4)
@@ -420,6 +427,7 @@ DEPENDENCIES
rubocop-rspec
rubocop-rspec_rails
sassc
simplecov
sprockets-rails
sqlite3

Просмотреть файл

@@ -4,6 +4,9 @@ require_relative 'spec_helper'
ENV['RAILS_ENV'] = 'test'
require 'simplecov'
SimpleCov.start 'rails'
require File.expand_path('dummy/config/environment.rb', __dir__)
abort('The Rails environment is running in production mode!') if Rails.env.production?