diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b4d0016..b561d3e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,7 +25,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Ruby ${{ matrix.ruby-version }} uses: ruby/setup-ruby@v1 with: diff --git a/Gemfile b/Gemfile index 5521082..687403b 100644 --- a/Gemfile +++ b/Gemfile @@ -1,7 +1,8 @@ source "https://rubygems.org" gemspec -gem "rake" +gem "m" gem "minitest" +gem "rake" +gem "simplecov" gem "standard" -gem "m" diff --git a/Gemfile.lock b/Gemfile.lock index 6d53e8a..2c9ada0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -9,7 +9,8 @@ GEM remote: https://rubygems.org/ specs: ast (2.4.2) - json (2.7.5) + docile (1.4.1) + json (2.8.1) language_server-protocol (3.17.0.3) lint_roller (1.1.0) m (1.6.2) @@ -18,55 +19,59 @@ GEM method_source (1.1.0) minitest (5.25.1) parallel (1.26.3) - parser (3.3.5.1) + parser (3.3.6.0) ast (~> 2.4.1) racc racc (1.8.1) rainbow (3.1.1) rake (13.2.1) regexp_parser (2.9.2) - rexml (3.3.0) - strscan - rubocop (1.64.1) + rubocop (1.66.1) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) 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.31.1, < 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.21.1) + rubocop-performance (1.22.1) rubocop (>= 1.48.1, < 2.0) rubocop-ast (>= 1.31.1, < 2.0) ruby-progressbar (1.13.0) - standard (1.37.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) + standard (1.41.1) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.0) - rubocop (~> 1.64.0) + rubocop (~> 1.66.0) standard-custom (~> 1.0.0) - standard-performance (~> 1.4) - standard-performance (1.4.0) + standard-performance (~> 1.5) + standard-performance (1.5.0) lint_roller (~> 1.1) - rubocop-performance (~> 1.21.0) - strscan (3.1.0) + rubocop-performance (~> 1.22.0) unicode-display_width (2.6.0) PLATFORMS arm64-darwin-22 arm64-darwin-23 + arm64-darwin-24 x86_64-linux DEPENDENCIES m minitest rake + simplecov standard standard-custom! BUNDLED WITH - 2.5.22 + 2.5.23 diff --git a/test/test_helper.rb b/test/test_helper.rb index 96a1eb5..fb82b95 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/custom" require "minitest/autorun"