Skip to content

Commit

Permalink
doc: expand the tutorial (#936)
Browse files Browse the repository at this point in the history
* update README

* minor change

* update README

* minor change
  • Loading branch information
andrewbwogi authored Feb 4, 2020
1 parent d67cd85 commit 81c49ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,13 @@ void test() {
}
```

When an amplification is successful, DSpot outputs the improvement on the console and the result of the amplification (the new tests) are written to the output folder specified by configuration property `outputDirectory` (default to `./target/dspot/output/`).
The modified test is lastly given to a selector, eg `--test-selector=PitMutantScoreSelector`, that determines if it improves the test suite and should be kept.

The amplification process is illustrated in the figure below. Note that amplified tests are further modified by subsequent iterations determined by for example `--iteration=10`.

![Application loop](docs/application_loop.png)

When an amplification is successful, DSpot outputs the improvement on the console and the result of the amplification (the new tests) are written to the output folder specified by configuration property `outputDirectory` (default to `./target/dspot/output/`).

```
Initial instruction coverage: 30 / 34
Expand Down Expand Up @@ -362,7 +367,7 @@ However, **DSpot** provide different kind of `Amplifier`:
* `ReturnValueAmplifier`: creates objects based on the returned value by existing method call
* `None`: do nothing

#### Test Selectors (-s | --test-criterion)
#### Test Selectors (-s | --test-selector | --test-criterion)

In **DSpot**, test selectors can be seen as a fitness: it measures the quality of amplified, and keeps only amplified tests that are worthy according to this selector.

Expand Down
Binary file added docs/application_loop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 81c49ef

Please sign in to comment.