mutator_rails 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/README.md +22 -8
- data/lib/mutator_rails/version.rb +1 -1
- data/mutator_rails.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9064d35e6047267086f5ca7c77892bf135f70a2bdc190e676568b03a93ab4afe
|
4
|
+
data.tar.gz: c8d1478e99527a5e814db81e5883d8824e5af39f377ee42dc81107143e788ca1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
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 (
|
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 (~>
|
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'
|
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
|
-
|
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
|
-
|
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/
|
45
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/hintmedia/mutator_rails.
|
data/mutator_rails.gemspec
CHANGED
@@ -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', '~>
|
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.
|
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:
|
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: '
|
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: '
|
55
|
+
version: '13.0'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: rails
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|