mutaterb 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mutaterb/test_adapters/minitest_adapter.rb +6 -1
- data/lib/mutaterb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 82ad4fc719ac8b83a1857348b0be06c45fbb2995fbcf431d85fb2b2b52c74342
|
|
4
|
+
data.tar.gz: add794c175e4509c69fc293090c5c60c6f9493c5477cabeea89630863b5c1832
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1128b8a7cd0462d1aa9eff94dfeaec8e7950b59faed65cb7cd91a9731e2fbf7f18b225098cad6a1c43e576ce82ffd5b876d384e67f72ae735849fdbb6f8767dc
|
|
7
|
+
data.tar.gz: 47642ca53aa83eb67f9a5226a0452a6c6c4d8fdc4fe6369a02e4253c6c7a568d836a1be54f725dd6955097667489c6f46a25f2f38108a1c7e14ad252d5761042
|
|
@@ -17,9 +17,14 @@ module MutateRB
|
|
|
17
17
|
LINE_PATTERN = /^(\S+)\s*=\s*([\d.]+)\s*s\s*=\s*([.FES])/
|
|
18
18
|
FILE_MARKER = "@@MUTATERB_FILE@@"
|
|
19
19
|
|
|
20
|
+
# Files are joined with `;`, not `&&`: `bin/rails test`/`ruby` exits non-zero whenever a
|
|
21
|
+
# test fails or errors, which is the normal case for a real project's suite — `&&` would
|
|
22
|
+
# silently stop the whole chain at the first failing file, dropping every file after it
|
|
23
|
+
# from the baseline. Nothing here reads the shell's exit status (TestRunner classifies
|
|
24
|
+
# purely from parsed output), so running every file regardless is safe.
|
|
20
25
|
def self.command_for(files, project_type:)
|
|
21
26
|
files.map { |file| "echo #{FILE_MARKER}#{Shellwords.escape(file)} && #{run_one(file, project_type)}" }
|
|
22
|
-
.join("
|
|
27
|
+
.join(" ; ")
|
|
23
28
|
end
|
|
24
29
|
|
|
25
30
|
def self.run_one(file, project_type)
|
data/lib/mutaterb/version.rb
CHANGED