mutant 0.7.8 → 0.7.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -1
  3. data/Changelog.md +5 -0
  4. data/README.md +11 -29
  5. data/config/flay.yml +1 -1
  6. data/config/reek.yml +1 -0
  7. data/lib/mutant.rb +3 -3
  8. data/lib/mutant/cli.rb +12 -9
  9. data/lib/mutant/integration.rb +13 -0
  10. data/lib/mutant/meta/example.rb +2 -2
  11. data/lib/mutant/reporter/cli.rb +3 -2
  12. data/lib/mutant/reporter/cli/printer.rb +2 -2
  13. data/lib/mutant/reporter/cli/tput.rb +29 -11
  14. data/lib/mutant/result.rb +0 -2
  15. data/lib/mutant/version.rb +1 -1
  16. data/meta/and.rb +0 -2
  17. data/meta/and_asgn.rb +0 -2
  18. data/meta/array.rb +0 -2
  19. data/meta/begin.rb +0 -2
  20. data/meta/block.rb +0 -2
  21. data/meta/block_pass.rb +0 -2
  22. data/meta/blockarg.rb +0 -2
  23. data/meta/boolean.rb +0 -2
  24. data/meta/break.rb +0 -2
  25. data/meta/case.rb +0 -2
  26. data/meta/casgn.rb +0 -2
  27. data/meta/cbase.rb +0 -2
  28. data/meta/const.rb +0 -2
  29. data/meta/cvar.rb +0 -2
  30. data/meta/cvasgn.rb +0 -2
  31. data/meta/def.rb +0 -2
  32. data/meta/defined.rb +0 -2
  33. data/meta/dstr.rb +0 -2
  34. data/meta/dsym.rb +0 -2
  35. data/meta/ensure.rb +0 -2
  36. data/meta/false.rb +0 -2
  37. data/meta/float.rb +0 -2
  38. data/meta/gvar.rb +0 -2
  39. data/meta/gvasgn.rb +0 -2
  40. data/meta/hash.rb +0 -2
  41. data/meta/if.rb +0 -2
  42. data/meta/int.rb +0 -2
  43. data/meta/ivasgn.rb +0 -2
  44. data/meta/kwbegin.rb +0 -2
  45. data/meta/lvar.rb +0 -2
  46. data/meta/lvasgn.rb +0 -2
  47. data/meta/masgn.rb +0 -2
  48. data/meta/match_current_line.rb +0 -2
  49. data/meta/next.rb +0 -2
  50. data/meta/nil.rb +0 -2
  51. data/meta/nthref.rb +0 -2
  52. data/meta/op_assgn.rb +0 -2
  53. data/meta/or.rb +0 -2
  54. data/meta/or_asgn.rb +0 -2
  55. data/meta/range.rb +0 -2
  56. data/meta/redo.rb +0 -2
  57. data/meta/regex.rb +0 -2
  58. data/meta/rescue.rb +0 -2
  59. data/meta/restarg.rb +0 -2
  60. data/meta/return.rb +0 -2
  61. data/meta/self.rb +0 -2
  62. data/meta/send.rb +0 -2
  63. data/meta/str.rb +0 -2
  64. data/meta/super.rb +0 -2
  65. data/meta/symbol.rb +0 -2
  66. data/meta/true.rb +0 -2
  67. data/meta/until.rb +0 -2
  68. data/meta/while.rb +0 -2
  69. data/meta/yield.rb +0 -2
  70. data/mutant-rspec.gemspec +1 -1
  71. data/mutant.gemspec +3 -3
  72. data/spec/integration/mutant/rspec_spec.rb +3 -39
  73. data/spec/shared/framework_integration_behavior.rb +35 -0
  74. data/spec/unit/mutant/cli_spec.rb +34 -1
  75. data/spec/unit/mutant/env_spec.rb +0 -1
  76. data/spec/unit/mutant/integration/rspec_spec.rb +193 -0
  77. data/spec/unit/mutant/loader/eval_spec.rb +1 -1
  78. data/spec/unit/mutant/matcher/methods/instance_spec.rb +22 -21
  79. data/spec/unit/mutant/matcher/methods/singleton_spec.rb +21 -19
  80. data/spec/unit/mutant/parallel/worker_spec.rb +0 -2
  81. data/spec/unit/mutant/reporter/cli/tput_spec.rb +48 -0
  82. data/spec/unit/mutant/reporter/cli_spec.rb +29 -9
  83. data/test_app/Gemfile.rspec3.0 +1 -0
  84. data/test_app/Gemfile.rspec3.1 +1 -0
  85. data/test_app/Gemfile.rspec3.2 +1 -0
  86. data/test_app/lib/test_app.rb +1 -1
  87. data/test_app/lib/test_app/literal.rb +0 -2
  88. data/test_app/spec/spec_helper.rb +0 -2
  89. data/test_app/spec/unit/test_app/literal_spec.rb +22 -0
  90. metadata +15 -5
  91. data/test_app/spec/unit/test_app/literal/command_spec.rb +0 -11
  92. data/test_app/spec/unit/test_app/literal/string_spec.rb +0 -11
@@ -3,3 +3,4 @@ gem 'rspec', '~> 3.0.0'
3
3
  gem 'rspec-core', '~> 3.0.0'
4
4
  gem 'mutant', path: '../'
5
5
  gem 'mutant-rspec', path: '../'
6
+ gem 'adamantium'
@@ -3,3 +3,4 @@ gem 'rspec', '~> 3.1.0'
3
3
  gem 'rspec-core', '~> 3.1.0'
4
4
  gem 'mutant', path: '../'
5
5
  gem 'mutant-rspec', path: '../'
6
+ gem 'adamantium'
@@ -3,3 +3,4 @@ gem 'rspec', '~> 3.2.0'
3
3
  gem 'rspec-core', '~> 3.2.0'
4
4
  gem 'mutant', path: '../'
5
5
  gem 'mutant-rspec', path: '../'
6
+ gem 'adamantium'
@@ -1,4 +1,4 @@
1
- # encoding: utf-8
1
+ require 'adamantium'
2
2
 
3
3
  original = $VERBOSE
4
4
  # Namespace for test application
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  module TestApp
4
2
  # Class for integration testing literal mutations
5
3
  class Literal
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  $LOAD_PATH << File.join(File.dirname(__FILE__), '../lib')
4
2
 
5
3
  require 'test_app'
@@ -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.8
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-03-08 00:00:00.000000000 Z
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/literal/command_spec.rb
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.2.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
@@ -1,11 +0,0 @@
1
- # encoding: utf-8
2
-
3
- require 'spec_helper'
4
-
5
- RSpec.describe TestApp::Literal, '#command' do
6
- subject { object.command(double) }
7
-
8
- let(:object) { described_class.new }
9
-
10
- it { should be(object) }
11
- end
@@ -1,11 +0,0 @@
1
- # encoding: utf-8
2
-
3
- require 'spec_helper'
4
-
5
- RSpec.describe TestApp::Literal, '#string' do
6
- subject { object.string }
7
-
8
- let(:object) { described_class.new }
9
-
10
- it { should eql('string') }
11
- end