From 90c1c64974e49cb8e77b109dfe581cdd0d8fad11 Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Tue, 27 Nov 2018 12:59:43 +0000 Subject: [PATCH] Change location of reading reports docs --- README.md | 73 +--------------------------------------- docs/reading-reports.md | 74 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+), 72 deletions(-) create mode 100644 docs/reading-reports.md diff --git a/README.md b/README.md index 50e7c4e4..1b5b0edc 100644 --- a/README.md +++ b/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 ----------- diff --git a/docs/reading-reports.md b/docs/reading-reports.md new file mode 100644 index 00000000..fcb817fc --- /dev/null +++ b/docs/reading-reports.md @@ -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.