From 3f136060cf334f0e2dcde288f0b4311041e6918c Mon Sep 17 00:00:00 2001 From: Stephan Lukasczyk Date: Fri, 5 Nov 2021 09:05:48 +0100 Subject: [PATCH] Release Pynguin 0.12.0 - Generate more reasonable variable names in tests. Before this release, Pynguin only generated variables named `var0`, `var1`, etc. A simple heuristics now attempts to generate more reasonable names depending on the type of the variable, such as `int_0`, `bool_1`, or `str_2`. We also adjusted the documentation to match this change. - We updated all provided PyCharm run configurations the use the more sophisticated queue example instead of the simple example module to see an improved output. - Prevent a potential regression when updating the dependencies to version 0.0.17 of the [simple-parsing](https://pypi.org/project/simple-parsing) library for CLI argument parsing, which changed its API. --- CHANGELOG.md | 11 +++++++++++ docker/Dockerfile | 2 +- pynguin/__init__.py | 2 +- pyproject.toml | 2 +- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 237fb7fd..4b06d97d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,17 @@ for the source-code artifacts of each version. ## Pynguin 0.12.0 +- Generate more reasonable variable names in tests. + Before this release, Pynguin only generated variables named `var0`, `var1`, etc. + A simple heuristics now attempts to generate more reasonable names depending on the + type of the variable, such as `int_0`, `bool_1`, or `str_2`. + We also adjusted the documentation to match this change. +- We updated all provided PyCharm run configurations the use the more sophisticated + queue example instead of the simple example module to see an improved output. +- Prevent a potential regression when updating the dependencies to version 0.0.17 of the + [simple-parsing](https://pypi.org/project/simple-parsing) library for CLI argument + parsing, which changed its API. + ## Pynguin 0.11.0 - Fix a control-dependency bug in DynaMOSA. Loops in the control-dependence graph diff --git a/docker/Dockerfile b/docker/Dockerfile index f679d568..66c737dd 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -36,7 +36,7 @@ FROM python:3.9.7-slim-bullseye AS execute # Set environment variables # Set the Pynguin version -ENV PYNGUIN_VERSION "0.12.0.dev0" +ENV PYNGUIN_VERSION "0.12.0" # Pynguin requires to set the variable to show it that the user is aware that running # Pynguin executes third-party code, which could cause arbitrary harm to the system. # By setting the variable, the user acknowledges that they are aware of this. In the diff --git a/pynguin/__init__.py b/pynguin/__init__.py index d80584ef..e160afaf 100644 --- a/pynguin/__init__.py +++ b/pynguin/__init__.py @@ -17,7 +17,7 @@ StoppingCondition = config.StoppingCondition TypeInferenceStrategy = config.TypeInferenceStrategy -__version__ = "0.12.0.dev" +__version__ = "0.12.0" __all__ = [ "set_configuration", "run_pynguin", diff --git a/pyproject.toml b/pyproject.toml index 8579d0db..aab99167 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ [tool.poetry] name = "pynguin" -version = "0.12.0.dev" +version = "0.12.0" description = "Pynguin is a tool for automated unit test generation for Python" authors = ["Stephan Lukasczyk "] license = "LGPL-3.0-or-later"