mutator_rails 0.1.14 → 0.1.15

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 998bb39dd73b4e03f552dd42e21dd3259dfdc036166ab95d89b10cbaf797a65b
4
- data.tar.gz: 926299f949d49eb52b9578ad57fda253955117bc8b21f71fbfbb0c6c752b30bc
3
+ metadata.gz: 9064d35e6047267086f5ca7c77892bf135f70a2bdc190e676568b03a93ab4afe
4
+ data.tar.gz: c8d1478e99527a5e814db81e5883d8824e5af39f377ee42dc81107143e788ca1
5
5
  SHA512:
6
- metadata.gz: 15fb7071aafcade8abb203d976d87912a2afe75e5b9cddb65f000cc823b1b3ee62088c06729b9f59f7ec4c4446bafe636e8a8a80aa363374bdc837baf3eaa8c9
7
- data.tar.gz: 8d681ae4b91d9110a2a6d82ab085b02975ea5fb0ccb3c377a33ef757e1a45f2974120fd2f21c6656702ea01d2dfb4e3c1ebf38db403a7685124b785cae72a1e9
6
+ metadata.gz: 06a4cf7eded9040e169cff94b0548811438f42d37a1c8b0a94b9b42bd5488e1ae12be172ceb477d760eeb7776ee1e044aa15948bd1417fa6d1f76fc863ab4459
7
+ data.tar.gz: 941f46db53be6492ac50bd6dbe15b59aedd024ee3e835c4aa0a7257f4633a326b0ab6aa0337a7cae84796571f52c6d7bf71c40cdc6e439af713050ace36d0344
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mutator_rails (0.1.14)
4
+ mutator_rails (0.1.15)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -128,13 +128,13 @@ GEM
128
128
  mutant (~> 0.8.14)
129
129
  rspec-core (>= 3.4.0, < 3.7.0)
130
130
  nio4r (2.3.1)
131
- nokogiri (1.10.5)
131
+ nokogiri (1.10.8)
132
132
  mini_portile2 (~> 2.4.0)
133
133
  parallel (1.11.2)
134
134
  parser (2.4.0.0)
135
135
  ast (~> 2.2)
136
136
  procto (0.0.3)
137
- rack (2.0.6)
137
+ rack (2.0.8)
138
138
  rack-test (1.1.0)
139
139
  rack (>= 1.0, < 3)
140
140
  rails (5.2.2.1)
@@ -163,7 +163,7 @@ GEM
163
163
  thor (>= 0.19.0, < 2.0)
164
164
  rainbow (2.2.2)
165
165
  rake
166
- rake (12.3.2)
166
+ rake (13.0.1)
167
167
  reek (4.7.2)
168
168
  codeclimate-engine-rb (~> 0.4.0)
169
169
  parser (>= 2.4.0.0, < 2.5)
@@ -232,7 +232,7 @@ DEPENDENCIES
232
232
  nokogiri (>= 1.10.4)
233
233
  procto (~> 0.0.3)
234
234
  rails (>= 4.0)
235
- rake (~> 12.0)
235
+ rake (~> 13.0)
236
236
  reek (~> 4.7.2)
237
237
  rspec-collection_matchers
238
238
  rspec-core (~> 3.6.0)
data/README.md CHANGED
@@ -2,23 +2,37 @@
2
2
 
3
3
  Integrate automated mutation testing into your Rails application
4
4
 
5
+ ## Overview
6
+
7
+ The goal of mutation testing is to improve your test coverage by finding elements of code that are not tested.
8
+
9
+ This gem supports the process of continually mutation testing a Rails application by logging results for analysis
10
+ and hashing source and spec files so that future mutation runs will only run against code that has changed.
11
+
5
12
  ## Installation
6
13
 
7
- Add these lines to your application's Gemfile:
14
+ Add these lines to your application's Gemfile and then run `bundle`:
8
15
 
9
16
  ```ruby
10
- gem 'mutant'
11
- gem 'mutant-rspec'
12
- gem 'mutator_rails', github: 'dinj-oss/mutator_rails'
17
+ gem 'mutant', github: 'mbj/mutant', ref: '90d103dc323eded68a7e80439def069f18b5e990'
18
+ gem 'mutant-rspec', github: 'mbj/mutant', ref: '90d103dc323eded68a7e80439def069f18b5e990'
19
+ gem 'mutator_rails'
13
20
  ```
14
21
 
15
- And then execute:
22
+ You'll notice that both the `mutant` and `mutant-rspec` gems are locked to a specific commit.
23
+ This is because that project has gone through some licensing changes and is not open source beyond this commit.
24
+ If you're interested in licensing the proprietary version, please contact [Markus Schirp](https://github.com/mbj) regarding how to obtain a license.
16
25
 
17
- $ bundle
18
26
 
19
27
  ## Usage
20
28
 
21
- TODO: Write usage instructions here
29
+ - `rails mutator:all` - Run all of the following rake tasks (this is likely the one you want to run)
30
+ - `rails mutator:files` - Runs mutant on any files missing or changed since the guide file was last created. Also creates the
31
+ guide file if missing. The guide file contains the test subject's file name, MD5 hashes of the source and spec files, and
32
+ the version of Mutant the file was last tested against.
33
+ - `rails mutator:cleanup` - Removes entries from guide file for any test subjects that no longer exist in the codebase.
34
+ - `rails mutator:analyze` - Generates an analysis TSV that summaries the mutation results for each subject mutated.
35
+ - `rails mutator:statistic` - Generates a summary file containing useful statistics about the mutation run.
22
36
 
23
37
  ## Development
24
38
 
@@ -28,4 +42,4 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
28
42
 
29
43
  ## Contributing
30
44
 
31
- Bug reports and pull requests are welcome on GitHub at https://github.com/dinj-oss/mutator_rails.
45
+ Bug reports and pull requests are welcome on GitHub at https://github.com/hintmedia/mutator_rails.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MutatorRails
4
- VERSION = '0.1.14'
4
+ VERSION = '0.1.15'
5
5
  end
@@ -21,7 +21,7 @@ Gem::Specification.new do |gem|
21
21
 
22
22
  gem.add_development_dependency 'actionview', '>= 5.1.6.2'
23
23
  gem.add_development_dependency 'bundler', '~> 1.15'
24
- gem.add_development_dependency 'rake', '~> 12.0'
24
+ gem.add_development_dependency 'rake', '~> 13.0'
25
25
  gem.add_development_dependency 'rails', '>= 4.0'
26
26
  gem.add_development_dependency 'rspec-core', '~> 3.6.0'
27
27
  gem.add_development_dependency 'rspec-expectations', '~> 3.6.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mutator_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Chambers
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-12-06 00:00:00.000000000 Z
12
+ date: 2020-03-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionview
@@ -45,14 +45,14 @@ dependencies:
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: '12.0'
48
+ version: '13.0'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: '12.0'
55
+ version: '13.0'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: rails
58
58
  requirement: !ruby/object:Gem::Requirement