diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e0f758d..b561d3e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,7 +31,5 @@ jobs: with: ruby-version: ${{ matrix.ruby-version }} bundler-cache: true - - name: Install dependencies - run: bundle install - name: Run tests for Ruby ${{ matrix.ruby-version }} on ${{ matrix.os }} run: bundle exec rake diff --git a/Gemfile b/Gemfile index f238231..62e810e 100644 --- a/Gemfile +++ b/Gemfile @@ -1,8 +1,9 @@ source "https://rubygems.org" gemspec -gem "rake" -gem "minitest" -gem "standard" gem "m" +gem "minitest" gem "mocktail" +gem "rake" +gem "simplecov" +gem "standard" diff --git a/Gemfile.lock b/Gemfile.lock index 350e4f8..e4fccba 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -9,55 +9,60 @@ GEM remote: https://rubygems.org/ specs: ast (2.4.2) - json (2.7.1) + docile (1.4.1) + json (2.8.1) language_server-protocol (3.17.0.3) lint_roller (1.1.0) m (1.6.1) method_source (>= 0.6.7) rake (>= 0.9.2.2) method_source (1.0.0) - minitest (5.19.0) + minitest (5.25.1) mocktail (2.0.0) sorbet-eraser (~> 0.3.1) sorbet-runtime (~> 0.5.9204) - parallel (1.24.0) - parser (3.3.1.0) + parallel (1.26.3) + parser (3.3.6.0) ast (~> 2.4.1) racc - racc (1.7.3) + racc (1.8.1) rainbow (3.1.1) rake (13.0.6) - regexp_parser (2.9.0) - rexml (3.2.6) - rubocop (1.59.0) + regexp_parser (2.9.2) + rubocop (1.66.1) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) - parser (>= 3.2.2.4) + parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.8, < 3.0) - rexml (>= 3.2.5, < 4.0) - rubocop-ast (>= 1.30.0, < 2.0) + regexp_parser (>= 2.4, < 3.0) + rubocop-ast (>= 1.32.2, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.31.3) + rubocop-ast (1.34.1) parser (>= 3.3.1.0) rubocop-performance (1.22.1) rubocop (>= 1.48.1, < 2.0) rubocop-ast (>= 1.31.1, < 2.0) ruby-progressbar (1.13.0) + 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) sorbet-eraser (0.3.1) sorbet-runtime (0.5.11435) - standard (1.33.0) + standard (1.41.1) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.0) - rubocop (~> 1.59.0) + rubocop (~> 1.66.0) standard-custom (~> 1.0.0) - standard-performance (~> 1.3) + standard-performance (~> 1.5) standard-custom (1.0.2) lint_roller (~> 1.0) rubocop (~> 1.50) - unicode-display_width (2.5.0) + unicode-display_width (2.6.0) PLATFORMS arm64-darwin-22 @@ -69,8 +74,9 @@ DEPENDENCIES minitest mocktail rake + simplecov standard standard-performance! BUNDLED WITH - 2.4.12 + 2.5.23 diff --git a/test/test_helper.rb b/test/test_helper.rb index cbf60c9..06044b6 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,4 +1,12 @@ $LOAD_PATH.unshift File.expand_path("../lib", __dir__) +begin + require "simplecov" + SimpleCov.start do + load_profile "test_frameworks" + end +rescue LoadError +end + require "standard/performance" require "minitest/autorun"