Skip to content

Commit 031cc15

Browse files
authored
Merge pull request #850 from cucumber/test-with-ruby-3-1
Test with Ruby 3.1 in CI
2 parents 7a1e986 + 0281175 commit 031cc15

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

.github/workflows/ruby.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414

1515
env:
1616
CUCUMBER_PUBLISH_QUIET: true
17+
RUBYOPTS: "--disable-did-you-mean"
1718
JRUBY_OPTS: "--dev"
1819

1920
jobs:
@@ -22,7 +23,7 @@ jobs:
2223

2324
strategy:
2425
matrix:
25-
ruby: ["3.0", jruby-9.2]
26+
ruby: ["3.0", "3.1", jruby-9.2]
2627
appraisal: [cucumber_7]
2728
include:
2829
- ruby: "2.5"

.simplecov

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,3 @@ SimpleCov.configure do
3131
# lets, befores, afters, etc are being used.
3232
add_group "Specs", "spec/"
3333
end
34-
35-
# Run simplecov by default
36-
SimpleCov.start unless ENV.key? "ARUBA_NO_COVERAGE"

features/support/simplecov_setup.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
unless RUBY_PLATFORM.include?("java")
44
require "simplecov"
55
root = File.expand_path("../..", __dir__)
6-
SimpleCov.command_name(ENV["SIMPLECOV_COMMAND_NAME"])
6+
command_name = ENV["SIMPLECOV_COMMAND_NAME"] || "Cucumber Features"
7+
SimpleCov.command_name(command_name)
78
SimpleCov.root(root)
8-
load File.join(root, ".simplecov")
9+
10+
# Run simplecov by default
11+
SimpleCov.start unless ENV.key? "ARUBA_NO_COVERAGE"
912
end

spec/spec_helper.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
unless RUBY_PLATFORM.include?("java")
44
require "simplecov"
5-
SimpleCov.command_name "rspec"
6-
SimpleCov.start
5+
SimpleCov.command_name "RSpec"
6+
7+
# Run simplecov by default
8+
SimpleCov.start unless ENV.key? "ARUBA_NO_COVERAGE"
79
end
810

911
# Loading support files

0 commit comments

Comments
 (0)