Skip to content

Commit 353709f

Browse files
authored
Merge pull request #6 from kenichiice/fix-errors
環境依存のエラーを解決する
2 parents 5e18ded + b712917 commit 353709f

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ jobs:
1414
os: [ubuntu-latest, macos-latest, windows-latest]
1515
ruby: [head, 2.7, 2.6, 2.5, 2.4, 2.3, jruby, truffleruby]
1616
exclude:
17+
- os: windows-latest
18+
ruby: 2.4
19+
- os: windows-latest
20+
ruby: 2.3
1721
- os: windows-latest
1822
ruby: truffleruby
1923
runs-on: ${{ matrix.os }}
@@ -23,6 +27,9 @@ jobs:
2327
- uses: ruby/setup-ruby@v1
2428
with:
2529
ruby-version: ${{ matrix.ruby }}
26-
bundler-cache: true
30+
bundler-cache: true
2731
# - run: bundle install
28-
- run: bundle exec rake test
32+
- if: matrix.ruby != 'jruby'
33+
run: bundle exec rake test
34+
- if: matrix.ruby == 'jruby'
35+
run: bundle exec rake test TESTOPTS='--ignore-name=/multibyte/'

Rakefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
require "bundler/gem_tasks"
2+
require "rake/testtask"
23

3-
task :default => :test
4-
5-
desc "run unit tests"
6-
task :test do
7-
ruby("test/run-test.rb")
4+
Rake::TestTask.new(:test) do |t|
5+
t.libs << "lib"
6+
t.test_files = FileList['test/**/test*.rb']
87
end
8+
9+
task :default => :test

test-unit-runner-junitxml.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
lib = File.expand_path("../lib", __FILE__)
32
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
43
require "test/unit/runner/junitxml/version"
@@ -25,6 +24,7 @@ Gem::Specification.new do |spec|
2524

2625
spec.add_development_dependency "bundler"
2726
spec.add_development_dependency "rake"
27+
spec.add_development_dependency "rexml"
2828

2929
spec.add_runtime_dependency "test-unit"
3030
end

0 commit comments

Comments
 (0)