From 4caeb6e32fb265843db68be9722e9f437f3d5c50 Mon Sep 17 00:00:00 2001 From: Takayuki Kamiyama Date: Sun, 14 Apr 2024 18:13:50 +0900 Subject: [PATCH 1/3] Update. --- .github/workflows/minitest_on_pr_merge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/minitest_on_pr_merge.yml b/.github/workflows/minitest_on_pr_merge.yml index c8d042b..d590a62 100644 --- a/.github/workflows/minitest_on_pr_merge.yml +++ b/.github/workflows/minitest_on_pr_merge.yml @@ -23,4 +23,4 @@ jobs: ruby-version: ${{ matrix.ruby-version }} bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests - run: ruby mini_test_runner.rb + run: bundle exec rake From 05a610621cc862fb054c97f3edfc9f625244f6a5 Mon Sep 17 00:00:00 2001 From: Takayuki Kamiyama Date: Sun, 14 Apr 2024 18:13:57 +0900 Subject: [PATCH 2/3] Update. --- .github/workflows/ruby.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index d159de0..dda3c0b 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -35,6 +35,6 @@ jobs: ruby-version: ${{ matrix.ruby-version }} bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests - run: ruby mini_test_runner.rb + run: bundle exec rake - name: Coverage Report by octocov (in this pull request) uses: k1LoW/octocov-action@v0 From bb15772c2c06e65f4fb78d28caacf5f1ecb837e2 Mon Sep 17 00:00:00 2001 From: Takayuki Kamiyama Date: Sun, 14 Apr 2024 18:14:04 +0900 Subject: [PATCH 3/3] Update. --- Rakefile | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/Rakefile b/Rakefile index 932cd61..30c8789 100755 --- a/Rakefile +++ b/Rakefile @@ -8,6 +8,7 @@ require 'rspec/core' require 'rspec/core/rake_task' require 'rdoc/task' require 'rake/testtask' +require 'simplecov' begin Bundler.setup(:default, :development) @@ -17,18 +18,11 @@ rescue Bundler::BundlerError => e exit e.status_code end -# rspec -RSpec::Core::RakeTask.new(:spec) do |spec| - spec.pattern = FileList['spec/**/*_spec.rb'] -end - -RSpec::Core::RakeTask.new(:rcov) do |spec| - spec.pattern = 'spec/**/*_spec.rb' - spec.rcov = true -end +# simplecov +SimpleCov.start -task :default => :spec +# RDoc Rake::RDocTask.new do |rdoc| version = File.exist?('VERSION') ? File.read('VERSION') : ""