mutiny 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +6 -0
- data/.rspec +3 -0
- data/.rubocop.yml +18 -0
- data/.ruby-version +1 -0
- data/.travis.yml +6 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +113 -0
- data/LICENSE.txt +22 -0
- data/README.md +16 -0
- data/RELEASES.md +8 -0
- data/Rakefile +23 -0
- data/TODO.md +55 -0
- data/bin/mutiny +35 -0
- data/examples/buggy_calculator/.rspec +2 -0
- data/examples/buggy_calculator/lib/calculator/max.rb +9 -0
- data/examples/buggy_calculator/lib/calculator.rb +4 -0
- data/examples/buggy_calculator/spec/calculator/max_spec.rb +17 -0
- data/examples/buggy_calculator/spec/spec_helper.rb +89 -0
- data/examples/calculator/.rspec +2 -0
- data/examples/calculator/lib/calculator/max.rb +9 -0
- data/examples/calculator/lib/calculator/min.rb +9 -0
- data/examples/calculator/lib/calculator.rb +5 -0
- data/examples/calculator/spec/calculator/max_spec.rb +17 -0
- data/examples/calculator/spec/calculator/min_spec.rb +17 -0
- data/examples/calculator/spec/spec_helper.rb +89 -0
- data/examples/untested_calculator/.rspec +2 -0
- data/examples/untested_calculator/lib/calculator/max.rb +9 -0
- data/examples/untested_calculator/lib/calculator.rb +4 -0
- data/examples/untested_calculator/spec/spec_helper.rb +89 -0
- data/lib/mutiny/configuration.rb +25 -0
- data/lib/mutiny/integration/rspec/context.rb +26 -0
- data/lib/mutiny/integration/rspec/parser.rb +36 -0
- data/lib/mutiny/integration/rspec/runner.rb +58 -0
- data/lib/mutiny/integration/rspec/test.rb +16 -0
- data/lib/mutiny/integration/rspec/test_set.rb +17 -0
- data/lib/mutiny/integration/rspec.rb +25 -0
- data/lib/mutiny/mode/check.rb +62 -0
- data/lib/mutiny/mode/mutate.rb +29 -0
- data/lib/mutiny/mode.rb +19 -0
- data/lib/mutiny/mutants/mutant.rb +32 -0
- data/lib/mutiny/mutants/mutant_set.rb +42 -0
- data/lib/mutiny/mutants/mutation/method/binary_arithmetic_operator_replacement.rb +15 -0
- data/lib/mutiny/mutants/mutation/method/conditional_operator_deletion.rb +19 -0
- data/lib/mutiny/mutants/mutation/method/conditional_operator_insertion.rb +25 -0
- data/lib/mutiny/mutants/mutation/method/conditional_operator_replacement.rb +19 -0
- data/lib/mutiny/mutants/mutation/method/helpers/infix_operator_replacement.rb +17 -0
- data/lib/mutiny/mutants/mutation/method/helpers/operator_replacement.rb +81 -0
- data/lib/mutiny/mutants/mutation/method/logical_operator_deletion.rb +19 -0
- data/lib/mutiny/mutants/mutation/method/logical_operator_insertion.rb +24 -0
- data/lib/mutiny/mutants/mutation/method/logical_operator_replacement.rb +15 -0
- data/lib/mutiny/mutants/mutation/method/relational_expression_replacement.rb +19 -0
- data/lib/mutiny/mutants/mutation/method/relational_operator_replacement.rb +15 -0
- data/lib/mutiny/mutants/mutation/method/shortcut_assignment_operator_replacement.rb +23 -0
- data/lib/mutiny/mutants/mutation/method/unary_arithmetic_operator_deletion.rb +29 -0
- data/lib/mutiny/mutants/mutation/method/unary_arithmetic_operator_insertion.rb +29 -0
- data/lib/mutiny/mutants/mutation.rb +10 -0
- data/lib/mutiny/mutants/mutation_set.rb +24 -0
- data/lib/mutiny/mutants/ruby.rb +42 -0
- data/lib/mutiny/pattern.rb +17 -0
- data/lib/mutiny/reporter/stdout.rb +9 -0
- data/lib/mutiny/subjects/environment/type.rb +54 -0
- data/lib/mutiny/subjects/environment.rb +25 -0
- data/lib/mutiny/subjects/subject.rb +32 -0
- data/lib/mutiny/subjects/subject_set.rb +17 -0
- data/lib/mutiny/subjects.rb +3 -0
- data/lib/mutiny/tests/test.rb +12 -0
- data/lib/mutiny/tests/test_run.rb +18 -0
- data/lib/mutiny/tests/test_set.rb +44 -0
- data/lib/mutiny/tests.rb +3 -0
- data/lib/mutiny/version.rb +3 -0
- data/lib/mutiny.rb +4 -0
- data/mutiny.gemspec +32 -0
- data/spec/integration/check_spec.rb +39 -0
- data/spec/integration/mutate_spec.rb +35 -0
- data/spec/spec_helper.rb +38 -0
- data/spec/support/aruba.rb +12 -0
- data/spec/support/in_example_project.rb +17 -0
- data/spec/support/shared_examples/shared_examples_for_an_operator_replacement_mutation.rb +26 -0
- data/spec/unit/integration/rspec/parser_spec.rb +23 -0
- data/spec/unit/integration/rspec/runner_spec.rb +47 -0
- data/spec/unit/mutants/mutant_set_spec.rb +57 -0
- data/spec/unit/mutants/mutations/method/binary_operator_replacement_spec.rb +11 -0
- data/spec/unit/mutants/mutations/method/conditional_operator_deletion_spec.rb +17 -0
- data/spec/unit/mutants/mutations/method/conditional_operator_insertion_spec.rb +17 -0
- data/spec/unit/mutants/mutations/method/conditional_operator_replacement_spec.rb +16 -0
- data/spec/unit/mutants/mutations/method/logical_operator_deletion_spec.rb +17 -0
- data/spec/unit/mutants/mutations/method/logical_operator_insertion_spec.rb +17 -0
- data/spec/unit/mutants/mutations/method/logical_operator_replacement_spec.rb +11 -0
- data/spec/unit/mutants/mutations/method/relational_expression_replacement_spec.rb +18 -0
- data/spec/unit/mutants/mutations/method/relational_operator_replacement_spec.rb +11 -0
- data/spec/unit/mutants/mutations/method/shortcut_assignment_operator_replacement_spec.rb +12 -0
- data/spec/unit/mutants/mutations/method/unary_arithmetic_operator_deletion_spec.rb +21 -0
- data/spec/unit/mutants/mutations/method/unary_arithmetic_operator_insertion_spec.rb +21 -0
- data/spec/unit/pattern_spec.rb +28 -0
- data/spec/unit/subjects/environment/type_spec.rb +54 -0
- data/spec/unit/subjects/environment_spec.rb +71 -0
- data/spec/unit/subjects/subject_spec.rb +25 -0
- data/spec/unit/subjects/test_set_spec.rb +75 -0
- metadata +310 -0
metadata
ADDED
@@ -0,0 +1,310 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mutiny
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Louis Rose
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-06-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: parser
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.2.2
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.2.2
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: unparser
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.2.4
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.2.4
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: gli
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 2.13.0
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.13.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: metamorpher
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.2.2
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.2.2
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: bundler
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.10.2
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.10.2
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 10.4.2
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 10.4.2
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 3.2.0
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 3.2.0
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: aruba
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 0.6.0
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 0.6.0
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: codeclimate-test-reporter
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 0.4.6
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 0.4.6
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rubocop
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 0.31.0
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 0.31.0
|
153
|
+
description: A tiny and experimental mutation testing framework for exploring research
|
154
|
+
ideas.
|
155
|
+
email:
|
156
|
+
- louis.rose@york.ac.uk
|
157
|
+
executables:
|
158
|
+
- mutiny
|
159
|
+
extensions: []
|
160
|
+
extra_rdoc_files: []
|
161
|
+
files:
|
162
|
+
- ".gitignore"
|
163
|
+
- ".rspec"
|
164
|
+
- ".rubocop.yml"
|
165
|
+
- ".ruby-version"
|
166
|
+
- ".travis.yml"
|
167
|
+
- Gemfile
|
168
|
+
- Gemfile.lock
|
169
|
+
- LICENSE.txt
|
170
|
+
- README.md
|
171
|
+
- RELEASES.md
|
172
|
+
- Rakefile
|
173
|
+
- TODO.md
|
174
|
+
- bin/mutiny
|
175
|
+
- examples/buggy_calculator/.rspec
|
176
|
+
- examples/buggy_calculator/lib/calculator.rb
|
177
|
+
- examples/buggy_calculator/lib/calculator/max.rb
|
178
|
+
- examples/buggy_calculator/spec/calculator/max_spec.rb
|
179
|
+
- examples/buggy_calculator/spec/spec_helper.rb
|
180
|
+
- examples/calculator/.rspec
|
181
|
+
- examples/calculator/lib/calculator.rb
|
182
|
+
- examples/calculator/lib/calculator/max.rb
|
183
|
+
- examples/calculator/lib/calculator/min.rb
|
184
|
+
- examples/calculator/spec/calculator/max_spec.rb
|
185
|
+
- examples/calculator/spec/calculator/min_spec.rb
|
186
|
+
- examples/calculator/spec/spec_helper.rb
|
187
|
+
- examples/untested_calculator/.rspec
|
188
|
+
- examples/untested_calculator/lib/calculator.rb
|
189
|
+
- examples/untested_calculator/lib/calculator/max.rb
|
190
|
+
- examples/untested_calculator/spec/spec_helper.rb
|
191
|
+
- lib/mutiny.rb
|
192
|
+
- lib/mutiny/configuration.rb
|
193
|
+
- lib/mutiny/integration/rspec.rb
|
194
|
+
- lib/mutiny/integration/rspec/context.rb
|
195
|
+
- lib/mutiny/integration/rspec/parser.rb
|
196
|
+
- lib/mutiny/integration/rspec/runner.rb
|
197
|
+
- lib/mutiny/integration/rspec/test.rb
|
198
|
+
- lib/mutiny/integration/rspec/test_set.rb
|
199
|
+
- lib/mutiny/mode.rb
|
200
|
+
- lib/mutiny/mode/check.rb
|
201
|
+
- lib/mutiny/mode/mutate.rb
|
202
|
+
- lib/mutiny/mutants/mutant.rb
|
203
|
+
- lib/mutiny/mutants/mutant_set.rb
|
204
|
+
- lib/mutiny/mutants/mutation.rb
|
205
|
+
- lib/mutiny/mutants/mutation/method/binary_arithmetic_operator_replacement.rb
|
206
|
+
- lib/mutiny/mutants/mutation/method/conditional_operator_deletion.rb
|
207
|
+
- lib/mutiny/mutants/mutation/method/conditional_operator_insertion.rb
|
208
|
+
- lib/mutiny/mutants/mutation/method/conditional_operator_replacement.rb
|
209
|
+
- lib/mutiny/mutants/mutation/method/helpers/infix_operator_replacement.rb
|
210
|
+
- lib/mutiny/mutants/mutation/method/helpers/operator_replacement.rb
|
211
|
+
- lib/mutiny/mutants/mutation/method/logical_operator_deletion.rb
|
212
|
+
- lib/mutiny/mutants/mutation/method/logical_operator_insertion.rb
|
213
|
+
- lib/mutiny/mutants/mutation/method/logical_operator_replacement.rb
|
214
|
+
- lib/mutiny/mutants/mutation/method/relational_expression_replacement.rb
|
215
|
+
- lib/mutiny/mutants/mutation/method/relational_operator_replacement.rb
|
216
|
+
- lib/mutiny/mutants/mutation/method/shortcut_assignment_operator_replacement.rb
|
217
|
+
- lib/mutiny/mutants/mutation/method/unary_arithmetic_operator_deletion.rb
|
218
|
+
- lib/mutiny/mutants/mutation/method/unary_arithmetic_operator_insertion.rb
|
219
|
+
- lib/mutiny/mutants/mutation_set.rb
|
220
|
+
- lib/mutiny/mutants/ruby.rb
|
221
|
+
- lib/mutiny/pattern.rb
|
222
|
+
- lib/mutiny/reporter/stdout.rb
|
223
|
+
- lib/mutiny/subjects.rb
|
224
|
+
- lib/mutiny/subjects/environment.rb
|
225
|
+
- lib/mutiny/subjects/environment/type.rb
|
226
|
+
- lib/mutiny/subjects/subject.rb
|
227
|
+
- lib/mutiny/subjects/subject_set.rb
|
228
|
+
- lib/mutiny/tests.rb
|
229
|
+
- lib/mutiny/tests/test.rb
|
230
|
+
- lib/mutiny/tests/test_run.rb
|
231
|
+
- lib/mutiny/tests/test_set.rb
|
232
|
+
- lib/mutiny/version.rb
|
233
|
+
- mutiny.gemspec
|
234
|
+
- spec/integration/check_spec.rb
|
235
|
+
- spec/integration/mutate_spec.rb
|
236
|
+
- spec/spec_helper.rb
|
237
|
+
- spec/support/aruba.rb
|
238
|
+
- spec/support/in_example_project.rb
|
239
|
+
- spec/support/shared_examples/shared_examples_for_an_operator_replacement_mutation.rb
|
240
|
+
- spec/unit/integration/rspec/parser_spec.rb
|
241
|
+
- spec/unit/integration/rspec/runner_spec.rb
|
242
|
+
- spec/unit/mutants/mutant_set_spec.rb
|
243
|
+
- spec/unit/mutants/mutations/method/binary_operator_replacement_spec.rb
|
244
|
+
- spec/unit/mutants/mutations/method/conditional_operator_deletion_spec.rb
|
245
|
+
- spec/unit/mutants/mutations/method/conditional_operator_insertion_spec.rb
|
246
|
+
- spec/unit/mutants/mutations/method/conditional_operator_replacement_spec.rb
|
247
|
+
- spec/unit/mutants/mutations/method/logical_operator_deletion_spec.rb
|
248
|
+
- spec/unit/mutants/mutations/method/logical_operator_insertion_spec.rb
|
249
|
+
- spec/unit/mutants/mutations/method/logical_operator_replacement_spec.rb
|
250
|
+
- spec/unit/mutants/mutations/method/relational_expression_replacement_spec.rb
|
251
|
+
- spec/unit/mutants/mutations/method/relational_operator_replacement_spec.rb
|
252
|
+
- spec/unit/mutants/mutations/method/shortcut_assignment_operator_replacement_spec.rb
|
253
|
+
- spec/unit/mutants/mutations/method/unary_arithmetic_operator_deletion_spec.rb
|
254
|
+
- spec/unit/mutants/mutations/method/unary_arithmetic_operator_insertion_spec.rb
|
255
|
+
- spec/unit/pattern_spec.rb
|
256
|
+
- spec/unit/subjects/environment/type_spec.rb
|
257
|
+
- spec/unit/subjects/environment_spec.rb
|
258
|
+
- spec/unit/subjects/subject_spec.rb
|
259
|
+
- spec/unit/subjects/test_set_spec.rb
|
260
|
+
homepage: https://github.com/mutiny/mutiny
|
261
|
+
licenses:
|
262
|
+
- MIT
|
263
|
+
metadata: {}
|
264
|
+
post_install_message:
|
265
|
+
rdoc_options: []
|
266
|
+
require_paths:
|
267
|
+
- lib
|
268
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
269
|
+
requirements:
|
270
|
+
- - ">="
|
271
|
+
- !ruby/object:Gem::Version
|
272
|
+
version: '0'
|
273
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
274
|
+
requirements:
|
275
|
+
- - ">="
|
276
|
+
- !ruby/object:Gem::Version
|
277
|
+
version: '0'
|
278
|
+
requirements: []
|
279
|
+
rubyforge_project:
|
280
|
+
rubygems_version: 2.4.5
|
281
|
+
signing_key:
|
282
|
+
specification_version: 4
|
283
|
+
summary: A tiny mutation testing framework for Ruby
|
284
|
+
test_files:
|
285
|
+
- spec/integration/check_spec.rb
|
286
|
+
- spec/integration/mutate_spec.rb
|
287
|
+
- spec/spec_helper.rb
|
288
|
+
- spec/support/aruba.rb
|
289
|
+
- spec/support/in_example_project.rb
|
290
|
+
- spec/support/shared_examples/shared_examples_for_an_operator_replacement_mutation.rb
|
291
|
+
- spec/unit/integration/rspec/parser_spec.rb
|
292
|
+
- spec/unit/integration/rspec/runner_spec.rb
|
293
|
+
- spec/unit/mutants/mutant_set_spec.rb
|
294
|
+
- spec/unit/mutants/mutations/method/binary_operator_replacement_spec.rb
|
295
|
+
- spec/unit/mutants/mutations/method/conditional_operator_deletion_spec.rb
|
296
|
+
- spec/unit/mutants/mutations/method/conditional_operator_insertion_spec.rb
|
297
|
+
- spec/unit/mutants/mutations/method/conditional_operator_replacement_spec.rb
|
298
|
+
- spec/unit/mutants/mutations/method/logical_operator_deletion_spec.rb
|
299
|
+
- spec/unit/mutants/mutations/method/logical_operator_insertion_spec.rb
|
300
|
+
- spec/unit/mutants/mutations/method/logical_operator_replacement_spec.rb
|
301
|
+
- spec/unit/mutants/mutations/method/relational_expression_replacement_spec.rb
|
302
|
+
- spec/unit/mutants/mutations/method/relational_operator_replacement_spec.rb
|
303
|
+
- spec/unit/mutants/mutations/method/shortcut_assignment_operator_replacement_spec.rb
|
304
|
+
- spec/unit/mutants/mutations/method/unary_arithmetic_operator_deletion_spec.rb
|
305
|
+
- spec/unit/mutants/mutations/method/unary_arithmetic_operator_insertion_spec.rb
|
306
|
+
- spec/unit/pattern_spec.rb
|
307
|
+
- spec/unit/subjects/environment/type_spec.rb
|
308
|
+
- spec/unit/subjects/environment_spec.rb
|
309
|
+
- spec/unit/subjects/subject_spec.rb
|
310
|
+
- spec/unit/subjects/test_set_spec.rb
|