mutant 0.7.8 → 0.7.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/Changelog.md +5 -0
- data/README.md +11 -29
- data/config/flay.yml +1 -1
- data/config/reek.yml +1 -0
- data/lib/mutant.rb +3 -3
- data/lib/mutant/cli.rb +12 -9
- data/lib/mutant/integration.rb +13 -0
- data/lib/mutant/meta/example.rb +2 -2
- data/lib/mutant/reporter/cli.rb +3 -2
- data/lib/mutant/reporter/cli/printer.rb +2 -2
- data/lib/mutant/reporter/cli/tput.rb +29 -11
- data/lib/mutant/result.rb +0 -2
- data/lib/mutant/version.rb +1 -1
- data/meta/and.rb +0 -2
- data/meta/and_asgn.rb +0 -2
- data/meta/array.rb +0 -2
- data/meta/begin.rb +0 -2
- data/meta/block.rb +0 -2
- data/meta/block_pass.rb +0 -2
- data/meta/blockarg.rb +0 -2
- data/meta/boolean.rb +0 -2
- data/meta/break.rb +0 -2
- data/meta/case.rb +0 -2
- data/meta/casgn.rb +0 -2
- data/meta/cbase.rb +0 -2
- data/meta/const.rb +0 -2
- data/meta/cvar.rb +0 -2
- data/meta/cvasgn.rb +0 -2
- data/meta/def.rb +0 -2
- data/meta/defined.rb +0 -2
- data/meta/dstr.rb +0 -2
- data/meta/dsym.rb +0 -2
- data/meta/ensure.rb +0 -2
- data/meta/false.rb +0 -2
- data/meta/float.rb +0 -2
- data/meta/gvar.rb +0 -2
- data/meta/gvasgn.rb +0 -2
- data/meta/hash.rb +0 -2
- data/meta/if.rb +0 -2
- data/meta/int.rb +0 -2
- data/meta/ivasgn.rb +0 -2
- data/meta/kwbegin.rb +0 -2
- data/meta/lvar.rb +0 -2
- data/meta/lvasgn.rb +0 -2
- data/meta/masgn.rb +0 -2
- data/meta/match_current_line.rb +0 -2
- data/meta/next.rb +0 -2
- data/meta/nil.rb +0 -2
- data/meta/nthref.rb +0 -2
- data/meta/op_assgn.rb +0 -2
- data/meta/or.rb +0 -2
- data/meta/or_asgn.rb +0 -2
- data/meta/range.rb +0 -2
- data/meta/redo.rb +0 -2
- data/meta/regex.rb +0 -2
- data/meta/rescue.rb +0 -2
- data/meta/restarg.rb +0 -2
- data/meta/return.rb +0 -2
- data/meta/self.rb +0 -2
- data/meta/send.rb +0 -2
- data/meta/str.rb +0 -2
- data/meta/super.rb +0 -2
- data/meta/symbol.rb +0 -2
- data/meta/true.rb +0 -2
- data/meta/until.rb +0 -2
- data/meta/while.rb +0 -2
- data/meta/yield.rb +0 -2
- data/mutant-rspec.gemspec +1 -1
- data/mutant.gemspec +3 -3
- data/spec/integration/mutant/rspec_spec.rb +3 -39
- data/spec/shared/framework_integration_behavior.rb +35 -0
- data/spec/unit/mutant/cli_spec.rb +34 -1
- data/spec/unit/mutant/env_spec.rb +0 -1
- data/spec/unit/mutant/integration/rspec_spec.rb +193 -0
- data/spec/unit/mutant/loader/eval_spec.rb +1 -1
- data/spec/unit/mutant/matcher/methods/instance_spec.rb +22 -21
- data/spec/unit/mutant/matcher/methods/singleton_spec.rb +21 -19
- data/spec/unit/mutant/parallel/worker_spec.rb +0 -2
- data/spec/unit/mutant/reporter/cli/tput_spec.rb +48 -0
- data/spec/unit/mutant/reporter/cli_spec.rb +29 -9
- data/test_app/Gemfile.rspec3.0 +1 -0
- data/test_app/Gemfile.rspec3.1 +1 -0
- data/test_app/Gemfile.rspec3.2 +1 -0
- data/test_app/lib/test_app.rb +1 -1
- data/test_app/lib/test_app/literal.rb +0 -2
- data/test_app/spec/spec_helper.rb +0 -2
- data/test_app/spec/unit/test_app/literal_spec.rb +22 -0
- metadata +15 -5
- data/test_app/spec/unit/test_app/literal/command_spec.rb +0 -11
- data/test_app/spec/unit/test_app/literal/string_spec.rb +0 -11
data/test_app/Gemfile.rspec3.0
CHANGED
data/test_app/Gemfile.rspec3.1
CHANGED
data/test_app/Gemfile.rspec3.2
CHANGED
data/test_app/lib/test_app.rb
CHANGED
@@ -0,0 +1,22 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
RSpec.describe TestApp::Literal do
|
6
|
+
|
7
|
+
describe '#command' do
|
8
|
+
subject { object.command(double) }
|
9
|
+
|
10
|
+
let(:object) { described_class.new }
|
11
|
+
|
12
|
+
it { should be(object) }
|
13
|
+
end
|
14
|
+
|
15
|
+
describe '#string' do
|
16
|
+
subject { object.string }
|
17
|
+
|
18
|
+
let(:object) { described_class.new }
|
19
|
+
|
20
|
+
it { should eql('string') }
|
21
|
+
end
|
22
|
+
end
|
metadata
CHANGED
@@ -1,20 +1,23 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mutant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Markus Schirp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parser
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.2'
|
20
|
+
- - ">="
|
18
21
|
- !ruby/object:Gem::Version
|
19
22
|
version: 2.2.0.2
|
20
23
|
type: :runtime
|
@@ -22,6 +25,9 @@ dependencies:
|
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '2.2'
|
30
|
+
- - ">="
|
25
31
|
- !ruby/object:Gem::Version
|
26
32
|
version: 2.2.0.2
|
27
33
|
- !ruby/object:Gem::Dependency
|
@@ -466,6 +472,7 @@ files:
|
|
466
472
|
- spec/integration/mutant/zombie_spec.rb
|
467
473
|
- spec/integrations.yml
|
468
474
|
- spec/rcov.opts
|
475
|
+
- spec/shared/framework_integration_behavior.rb
|
469
476
|
- spec/shared/method_matcher_behavior.rb
|
470
477
|
- spec/spec_helper.rb
|
471
478
|
- spec/support/compress_helper.rb
|
@@ -497,6 +504,7 @@ files:
|
|
497
504
|
- spec/unit/mutant/expression/namespace/flat_spec.rb
|
498
505
|
- spec/unit/mutant/expression/namespace/recursive_spec.rb
|
499
506
|
- spec/unit/mutant/expression_spec.rb
|
507
|
+
- spec/unit/mutant/integration/rspec_spec.rb
|
500
508
|
- spec/unit/mutant/integration_spec.rb
|
501
509
|
- spec/unit/mutant/isolation_spec.rb
|
502
510
|
- spec/unit/mutant/loader/eval_spec.rb
|
@@ -517,6 +525,7 @@ files:
|
|
517
525
|
- spec/unit/mutant/parallel/source/array_spec.rb
|
518
526
|
- spec/unit/mutant/parallel/worker_spec.rb
|
519
527
|
- spec/unit/mutant/parallel_spec.rb
|
528
|
+
- spec/unit/mutant/reporter/cli/tput_spec.rb
|
520
529
|
- spec/unit/mutant/reporter/cli_spec.rb
|
521
530
|
- spec/unit/mutant/reporter/null_spec.rb
|
522
531
|
- spec/unit/mutant/reporter/trace_spec.rb
|
@@ -539,8 +548,7 @@ files:
|
|
539
548
|
- test_app/lib/test_app.rb
|
540
549
|
- test_app/lib/test_app/literal.rb
|
541
550
|
- test_app/spec/spec_helper.rb
|
542
|
-
- test_app/spec/unit/test_app/
|
543
|
-
- test_app/spec/unit/test_app/literal/string_spec.rb
|
551
|
+
- test_app/spec/unit/test_app/literal_spec.rb
|
544
552
|
homepage: https://github.com/mbj/mutant
|
545
553
|
licenses:
|
546
554
|
- MIT
|
@@ -561,7 +569,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
561
569
|
version: '0'
|
562
570
|
requirements: []
|
563
571
|
rubyforge_project:
|
564
|
-
rubygems_version: 2.
|
572
|
+
rubygems_version: 2.4.5
|
565
573
|
signing_key:
|
566
574
|
specification_version: 4
|
567
575
|
summary: Mutation testing tool for ruby under MRI and Rubinius
|
@@ -591,6 +599,7 @@ test_files:
|
|
591
599
|
- spec/unit/mutant/expression/namespace/flat_spec.rb
|
592
600
|
- spec/unit/mutant/expression/namespace/recursive_spec.rb
|
593
601
|
- spec/unit/mutant/expression_spec.rb
|
602
|
+
- spec/unit/mutant/integration/rspec_spec.rb
|
594
603
|
- spec/unit/mutant/integration_spec.rb
|
595
604
|
- spec/unit/mutant/isolation_spec.rb
|
596
605
|
- spec/unit/mutant/loader/eval_spec.rb
|
@@ -611,6 +620,7 @@ test_files:
|
|
611
620
|
- spec/unit/mutant/parallel/source/array_spec.rb
|
612
621
|
- spec/unit/mutant/parallel/worker_spec.rb
|
613
622
|
- spec/unit/mutant/parallel_spec.rb
|
623
|
+
- spec/unit/mutant/reporter/cli/tput_spec.rb
|
614
624
|
- spec/unit/mutant/reporter/cli_spec.rb
|
615
625
|
- spec/unit/mutant/reporter/null_spec.rb
|
616
626
|
- spec/unit/mutant/reporter/trace_spec.rb
|