Skip to content

Commit 9029cbf

Browse files
authored
Merge pull request #1466 from mbj/upgrade/regexp-parser-dependenciy
Upgrade regexp parser dependency
2 parents f9a99e1 + 0f36258 commit 9029cbf

15 files changed

+66
-51
lines changed

Changelog.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
# v0.13.0 unreleased
1+
# v0.13.1 2025-03-23
2+
3+
Add new `mutant test` primary subcommand. This subcommand allows
4+
to run rspec (or minitest) tests via mutants *parallel* test runner.
5+
6+
Standard precautions to correctly synchronize or isolate global resources
7+
(fileystems / database) apply.
8+
9+
# v0.13.0 2025-03-23
210

311
Significant unparser upgrade. Mutant now:
412

@@ -21,7 +29,7 @@
2129
implicit self receivers in the past. But this was not intended by these mutations, at least not
2230
without explicitly changing the reads to send nodes explicitly.
2331

24-
# v0.12.5 unreleased
32+
# v0.12.5 2024-06-30
2533

2634
* [#1458](https://github.com/mbj/mutant/pull/1458)
2735

Gemfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
PATH
22
remote: .
33
specs:
4-
mutant (0.13.0)
4+
mutant (0.13.1)
55
diff-lcs (~> 1.3)
66
parser (~> 3.3.0)
7-
regexp_parser (~> 2.9.0)
7+
regexp_parser (~> 2.10)
88
sorbet-runtime (~> 0.5.0)
99
unparser (~> 0.7.0)
1010

@@ -22,7 +22,7 @@ GEM
2222
racc
2323
racc (1.8.1)
2424
rainbow (3.1.1)
25-
regexp_parser (2.9.3)
25+
regexp_parser (2.10.0)
2626
rspec (3.13.0)
2727
rspec-core (~> 3.13.0)
2828
rspec-expectations (~> 3.13.0)

lib/mutant/cli/command/environment/test.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ def from_result(result)
6363
Either::Left.new('Test failures, exiting nonzero!')
6464
end
6565
end
66+
67+
# Alias to root mount
68+
class Root < self
69+
NAME = 'test'
70+
SUBCOMMANDS = EMPTY_ARRAY
71+
end
6672
end
6773

6874
SUBCOMMANDS = [List, Run].freeze

lib/mutant/cli/command/root.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Environment < self
1010
class Root < self
1111
NAME = 'mutant'
1212
SHORT_DESCRIPTION = 'mutation testing engine main command'
13-
SUBCOMMANDS = [Environment::Run, Environment, Util].freeze
13+
SUBCOMMANDS = [Environment::Run, Environment::Test::Run::Root, Environment, Util].freeze
1414
end # Root
1515
end # Command
1616
end # CLI

lib/mutant/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
module Mutant
44
# Current mutant version
5-
VERSION = '0.13.0'
5+
VERSION = '0.13.1'
66
end # Mutant

mutant.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Gem::Specification.new do |gem|
2727

2828
gem.add_dependency('diff-lcs', '~> 1.3')
2929
gem.add_dependency('parser', '~> 3.3.0')
30-
gem.add_dependency('regexp_parser', '~> 2.9.0')
30+
gem.add_dependency('regexp_parser', '~> 2.10')
3131
gem.add_dependency('sorbet-runtime', '~> 0.5.0')
3232
gem.add_dependency('unparser', '~> 0.7.0')
3333

spec/shared/framework_integration_behavior.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def system_with_gemfile(*command)
1414
around do |example|
1515
Bundler.with_unbundled_env do
1616
Dir.chdir(TestApp.root) do
17-
Kernel.system(*p('bundle', 'install', '--gemfile', gemfile)) || fail('Bundle install failed!')
17+
Kernel.system('bundle', 'install', '--gemfile', gemfile) || fail('Bundle install failed!')
1818
example.run
1919
end
2020
end

spec/unit/mutant/cli_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def self.make
104104
# rubocop:disable Metrics/MethodLength
105105
def self.main_body
106106
<<~MESSAGE.strip
107-
usage: mutant <run|environment|util> [options]
107+
usage: mutant <run|test|environment|util> [options]
108108
109109
Summary: mutation testing engine main command
110110
@@ -120,6 +120,7 @@ def self.main_body
120120
Available subcommands:
121121
122122
run - Run code analysis
123+
test - Run tests
123124
environment - Environment subcommands
124125
util - Utility subcommands
125126
MESSAGE

test_app/Gemfile.minitest.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
PATH
22
remote: ..
33
specs:
4-
mutant (0.13.0)
4+
mutant (0.13.1)
55
diff-lcs (~> 1.3)
66
parser (~> 3.3.0)
7-
regexp_parser (~> 2.9.0)
7+
regexp_parser (~> 2.10)
88
sorbet-runtime (~> 0.5.0)
99
unparser (~> 0.7.0)
10-
mutant-minitest (0.13.0)
10+
mutant-minitest (0.13.1)
1111
minitest (~> 5.11)
12-
mutant (= 0.13.0)
12+
mutant (= 0.13.1)
1313
mutex_m (~> 0.2)
1414

1515
GEM
@@ -23,7 +23,7 @@ GEM
2323
ast (~> 2.4.1)
2424
racc
2525
racc (1.8.1)
26-
regexp_parser (2.9.3)
26+
regexp_parser (2.10.0)
2727
sorbet-runtime (0.5.11953)
2828
unparser (0.7.0)
2929
diff-lcs (~> 1.6)

test_app/Gemfile.rspec3.10.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
PATH
22
remote: ..
33
specs:
4-
mutant (0.13.0)
4+
mutant (0.13.1)
55
diff-lcs (~> 1.3)
66
parser (~> 3.3.0)
7-
regexp_parser (~> 2.9.0)
7+
regexp_parser (~> 2.10)
88
sorbet-runtime (~> 0.5.0)
99
unparser (~> 0.7.0)
10-
mutant-rspec (0.13.0)
11-
mutant (= 0.13.0)
10+
mutant-rspec (0.13.1)
11+
mutant (= 0.13.1)
1212
rspec-core (>= 3.8.0, < 4.0.0)
1313

1414
GEM
@@ -26,7 +26,7 @@ GEM
2626
ast (~> 2.4.1)
2727
racc
2828
racc (1.8.1)
29-
regexp_parser (2.9.3)
29+
regexp_parser (2.10.0)
3030
rspec (3.13.0)
3131
rspec-core (~> 3.13.0)
3232
rspec-expectations (~> 3.13.0)
@@ -57,4 +57,4 @@ DEPENDENCIES
5757
rspec-core (~> 3.10)
5858

5959
BUNDLED WITH
60-
2.5.22
60+
2.6.2

0 commit comments

Comments
 (0)