-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add an assertion-generation strategy based on mutation (thanks to @f-str). The new strategy is enabled by default (can be configured using the `--assertion-generation` parameter). It uses a custom [fork](https://github.com/se2p/mutpy-pynguin) of the mutation-testing framework [MutPy](https://github.com/mutpy/mutpy), which mutates the subject under test and for each mutant traces the values of fields and returned by method calls. If these values differ between mutant and original code, an assertion is generated based on the result on the original subject under test. One can also control whether the strategy shall also generate assertions for unchanged values by the `--generate-all-assertions` flag. The release also updates the documentation accordingly. *Note:* This feature is an early prototype of such an assertion generation, which might cause unexpected behaviour. You can switch back to the previous strategy for assertion generation by setting `--assertion-generation SIMPLE`.
- Loading branch information
1 parent
e92fb7c
commit d86d817
Showing
4 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
[tool.poetry] | ||
name = "pynguin" | ||
version = "0.13.0.dev" | ||
version = "0.13.0" | ||
description = "Pynguin is a tool for automated unit test generation for Python" | ||
authors = ["Stephan Lukasczyk <[email protected]>"] | ||
license = "LGPL-3.0-or-later" | ||
|