Change location of reading reports docs
This commit is contained in:
parent
e9e4ffbca2
commit
90c1c64974
2 changed files with 75 additions and 72 deletions
73
README.md
73
README.md
|
@ -21,6 +21,7 @@ Topics
|
|||
------
|
||||
|
||||
* [Nomenclature](/docs/nomenclature.md)
|
||||
* [Reading Reports](/docs/reading-reports.md)
|
||||
|
||||
Sponsoring
|
||||
----------
|
||||
|
@ -147,78 +148,6 @@ Example for a subject like `Foo::Bar#baz` it will run all example groups with de
|
|||
`Foo::Bar#baz`, `Foo::Bar` and `Foo`. The order is important, so if mutant finds example groups in the
|
||||
current prefix level, these example groups *must* kill the mutation.
|
||||
|
||||
Reading Reports
|
||||
---------------
|
||||
|
||||
Mutation output is grouped by selection groups. Each group contains three sections:
|
||||
|
||||
1. An identifier for the current group.
|
||||
|
||||
**Format**:
|
||||
|
||||
```text
|
||||
[SUBJECT EXPRESSION]:[SOURCE LOCATION]:[LINENO]
|
||||
```
|
||||
|
||||
**Example**:
|
||||
|
||||
```text
|
||||
Book#add_page:Book#add_page:/home/dev/mutant-examples/lib/book.rb:18
|
||||
```
|
||||
|
||||
2. A list of specs that mutant ran to try to kill mutations for the current group.
|
||||
|
||||
**Format**:
|
||||
|
||||
```text
|
||||
- [INTEGRATION]:0:[SPEC LOCATION]:[SPEC DESCRIPTION]
|
||||
- [INTEGRATION]:1:[SPEC LOCATION]:[SPEC DESCRIPTION]
|
||||
```
|
||||
|
||||
**Example**:
|
||||
|
||||
```text
|
||||
- rspec:0:./spec/unit/book_spec.rb:9/Book#add_page should return self
|
||||
- rspec:1:./spec/unit/book_spec.rb:13/Book#add_page should add page to book
|
||||
```
|
||||
|
||||
3. A list of unkilled mutations diffed against the original unparsed source
|
||||
|
||||
**Format**:
|
||||
|
||||
```text
|
||||
[MUTATION TYPE]:[SUBJECT EXPRESSION]:[SOURCE LOCATION]:[SOURCE LINENO]:[IDENTIFIER]
|
||||
[DIFF]
|
||||
-----------------------
|
||||
```
|
||||
|
||||
- `[MUTATION TYPE]` will be one of the following:
|
||||
- `evil` - a mutation of your source was not killed by your tests
|
||||
- `neutral` your original source was injected and one or more tests failed
|
||||
- `[IDENTIFIER]` - Unique identifier for this mutation
|
||||
|
||||
**Example**:
|
||||
|
||||
```diff
|
||||
evil:Book#add_page:Book#add_page:/home/dev/mutant-examples/lib/book.rb:18:01f69
|
||||
@@ -1,6 +1,6 @@
|
||||
def add_page(page)
|
||||
- @pages << page
|
||||
+ @pages
|
||||
@index[page.number] = page
|
||||
self
|
||||
end
|
||||
-----------------------
|
||||
evil:Book#add_page:Book#add_page:/home/dev/mutant-examples/lib/book.rb:18:b1ff2
|
||||
@@ -1,6 +1,6 @@
|
||||
def add_page(page)
|
||||
- @pages << page
|
||||
+ self
|
||||
@index[page.number] = page
|
||||
self
|
||||
end
|
||||
-----------------------
|
||||
```
|
||||
|
||||
Concurrency
|
||||
-----------
|
||||
|
|
74
docs/reading-reports.md
Normal file
74
docs/reading-reports.md
Normal file
|
@ -0,0 +1,74 @@
|
|||
Reading Reports
|
||||
===============
|
||||
|
||||
Mutation output is grouped by selection groups. Each group contains three sections:
|
||||
|
||||
1. An identifier for the current group.
|
||||
|
||||
**Format**:
|
||||
|
||||
```text
|
||||
[SUBJECT EXPRESSION]:[SOURCE LOCATION]:[LINENO]
|
||||
```
|
||||
|
||||
**Example**:
|
||||
|
||||
```text
|
||||
Book#add_page:Book#add_page:/home/dev/mutant-examples/lib/book.rb:18
|
||||
```
|
||||
|
||||
2. A list of specs that mutant ran to try to kill mutations for the current group.
|
||||
|
||||
**Format**:
|
||||
|
||||
```text
|
||||
- [INTEGRATION]:0:[SPEC LOCATION]:[SPEC DESCRIPTION]
|
||||
- [INTEGRATION]:1:[SPEC LOCATION]:[SPEC DESCRIPTION]
|
||||
```
|
||||
|
||||
**Example**:
|
||||
|
||||
```text
|
||||
- rspec:0:./spec/unit/book_spec.rb:9/Book#add_page should return self
|
||||
- rspec:1:./spec/unit/book_spec.rb:13/Book#add_page should add page to book
|
||||
```
|
||||
|
||||
3. A list of unkilled mutations diffed against the original unparsed source
|
||||
|
||||
**Format**:
|
||||
|
||||
```text
|
||||
[MUTATION TYPE]:[SUBJECT EXPRESSION]:[SOURCE LOCATION]:[SOURCE LINENO]:[IDENTIFIER]
|
||||
[DIFF]
|
||||
-----------------------
|
||||
```
|
||||
|
||||
- `[MUTATION TYPE]` will be one of the following:
|
||||
- `evil` - a mutation of your source was not killed by your tests
|
||||
- `neutral` your original source was injected and one or more tests failed
|
||||
- `[IDENTIFIER]` - Unique identifier for this mutation
|
||||
|
||||
**Example**:
|
||||
|
||||
```diff
|
||||
evil:Book#add_page:Book#add_page:/home/dev/mutant-examples/lib/book.rb:18:01f69
|
||||
@@ -1,6 +1,6 @@
|
||||
def add_page(page)
|
||||
- @pages << page
|
||||
+ @pages
|
||||
@index[page.number] = page
|
||||
self
|
||||
end
|
||||
-----------------------
|
||||
evil:Book#add_page:Book#add_page:/home/dev/mutant-examples/lib/book.rb:18:b1ff2
|
||||
@@ -1,6 +1,6 @@
|
||||
def add_page(page)
|
||||
- @pages << page
|
||||
+ self
|
||||
@index[page.number] = page
|
||||
self
|
||||
end
|
||||
-----------------------
|
||||
```
|
||||
|
||||
At this time no machine readable output exists in the opensourced versions of mutant.
|
Loading…
Reference in a new issue