crude-mutant 0.1.1 → 0.2.0
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/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/exe/cm +10 -2
- data/exe/crude-mutant +10 -2
- data/lib/crude_mutant/file_loader.rb +1 -1
- data/lib/crude_mutant/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: b7995d07eb23c4dd27bbdcef0e9e9bc91f30ea5cea9c0cea1d499ebac7fe7d1b
|
4
|
+
data.tar.gz: 3fe7b7e6a49d02ddaa4a76aa46f54f098f83ef567900c0823a711cd04e0f39ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86da63240b24bfafbf875881bf5f0703b8aec128143ee449cc2f82bb33d238b904fc5221c5c9742aae4e975627571447dddf08a5c58b108e6ad15fab6f04bd24
|
7
|
+
data.tar.gz: 0cf59d5285e79fd00e071add6feca8fff67bf2db308d291ff2fda0fc6e5ca9c44ba086826359bbab6479ff859fef6592f73aaec3bdf780c6e5cf0f82dd2f0542
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -23,13 +23,13 @@ It's assumed that the command will return a non-zero status code on test failure
|
|
23
23
|
Here's a Ruby-centric example:
|
24
24
|
|
25
25
|
```
|
26
|
-
crude-mutant "app/models/post.rb"
|
26
|
+
crude-mutant "bundle exec rspec" "app/models/post.rb"
|
27
27
|
```
|
28
28
|
|
29
29
|
You can also use the shortened `cm`:
|
30
30
|
|
31
31
|
```
|
32
|
-
cm "app/models/post.rb"
|
32
|
+
cm "bundle exec rspec" "app/models/post.rb"
|
33
33
|
```
|
34
34
|
|
35
35
|
## See Also
|
data/exe/cm
CHANGED
@@ -3,8 +3,16 @@
|
|
3
3
|
|
4
4
|
require "crude-mutant"
|
5
5
|
|
6
|
-
|
7
|
-
|
6
|
+
test_command = ARGV[0]
|
7
|
+
file_to_mutate = ARGV[1]
|
8
|
+
|
9
|
+
if !file_to_mutate || !test_command
|
10
|
+
puts "Usage: crude-mutant [test command] [file to mutate]"
|
11
|
+
puts ""
|
12
|
+
puts "Example:"
|
13
|
+
puts " crude-mutant \"bundle exec rspec\" app/models/post.rb"
|
14
|
+
exit(1)
|
15
|
+
end
|
8
16
|
|
9
17
|
CrudeMutant.start(file_to_mutate, test_command) do |progress|
|
10
18
|
clear_string = ' ' * CrudeMutant::TerminalCalculator.new.calculate_length
|
data/exe/crude-mutant
CHANGED
@@ -3,8 +3,16 @@
|
|
3
3
|
|
4
4
|
require "crude-mutant"
|
5
5
|
|
6
|
-
|
7
|
-
|
6
|
+
test_command = ARGV[0]
|
7
|
+
file_to_mutate = ARGV[1]
|
8
|
+
|
9
|
+
if !file_to_mutate || !test_command
|
10
|
+
puts "Usage: crude-mutant [test command] [file to mutate]"
|
11
|
+
puts ""
|
12
|
+
puts "Example:"
|
13
|
+
puts " crude-mutant \"bundle exec rspec\" app/models/post.rb"
|
14
|
+
exit(1)
|
15
|
+
end
|
8
16
|
|
9
17
|
CrudeMutant.start(file_to_mutate, test_command) do |progress|
|
10
18
|
clear_string = ' ' * CrudeMutant::TerminalCalculator.new.calculate_length
|
data/lib/crude_mutant/version.rb
CHANGED