mutant-minitest 0.10.6 → 0.10.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 49020cd8cb4d2bea6c0c1d27f452313ebea5f8106c0f7c1a5d5c524473518203
4
- data.tar.gz: baf37ddf84128f7fa11cce094bfa98bc6b73e9c06d0485e91bd87264fdb31b35
3
+ metadata.gz: 2f731994fed91df4a3aa7a1dde71f4ba16b5d4894e6d85a13667b637ce1000f6
4
+ data.tar.gz: ecafa2352181af37d8abd24d5d5949a698a03c676f38aa28e408e1a040ac5ac3
5
5
  SHA512:
6
- metadata.gz: 72766018e6f9c12cfc717c3ab45659623d12287c92dd6faa3b51554648c50618dfc6ec951b96f33912cabd004a64b4d4b802e0e173b6c4724a34dd769e98d07e
7
- data.tar.gz: 5678193a04f3a557f0c8c22dd69033cb2e2928fb0ef4eb0ad61d424a8cefe1e95e32e518eb9f8e422bd334dafe4624a486170cb9a8f18ed31aa3f59065fce989
6
+ metadata.gz: 00fe166c551256b61931bf6bb906463bfd4052d880d262fe050f1c06a02276cf7f48df6741c5951b07cd547668d477b93dd615c7cba0c94aac71740aefaba334
7
+ data.tar.gz: b18893ea403a2bc6875053e3646da6f7e376275811461f22663c756ecd1fe33e3248680f21a5878fa210cf88418906c46da7f39dc1f3955c872e82ac63d6a429
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Note: The minitest integration was sponsored by [Arkency](https://arkency.com/).
3
+ # The minitest integration was sponsored by [Arkency](https://arkency.com/).
4
4
  # Without their support this integration would not exist.
5
5
 
6
6
  require 'minitest'
@@ -83,14 +83,11 @@ module Mutant
83
83
  # @return [Result::Test]
84
84
  #
85
85
  # rubocop:disable Metrics/MethodLength
86
- #
87
- # ignore :reek:TooManyStatements
88
86
  def call(tests)
89
87
  test_cases = tests.map(&all_tests_index.method(:fetch))
90
- output = StringIO.new
91
- start = Timer.now
88
+ start = timer.now
92
89
 
93
- reporter = ::Minitest::SummaryReporter.new(output)
90
+ reporter = ::Minitest::SummaryReporter.new($stdout)
94
91
 
95
92
  reporter.start
96
93
 
@@ -98,13 +95,10 @@ module Mutant
98
95
  break unless test.call(reporter)
99
96
  end
100
97
 
101
- output.rewind
102
-
103
98
  Result::Test.new(
104
99
  passed: reporter.passed?,
105
100
  tests: tests,
106
- output: output.read,
107
- runtime: Timer.now - start
101
+ runtime: timer.now - start
108
102
  )
109
103
  end
110
104
 
@@ -128,7 +122,7 @@ module Mutant
128
122
  def construct_test(test_case)
129
123
  Test.new(
130
124
  id: test_case.identification,
131
- expressions: test_case.expressions(config.expression_parser)
125
+ expressions: test_case.expressions(expression_parser)
132
126
  )
133
127
  end
134
128
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mutant-minitest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.6
4
+ version: 0.10.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Schirp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-06 00:00:00.000000000 Z
11
+ date: 2020-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.10.6
33
+ version: 0.10.7
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.10.6
40
+ version: 0.10.7
41
41
  description: Minitest integration for mutant
42
42
  email:
43
43
  - mbj@schirp-dso.com