2020
DOI: 10.1007/978-3-030-59762-7_2
|View full text |Cite
|
Sign up to set email alerts
|

Automated Unit Test Generation for Python

Abstract: Various mature automated test generation tools exist for statically typed programming languages such as Java. Automatically generating tests for dynamically typed programming languages such as Python, however, is substantially more difficult due to the dynamic nature of these languages as well as the lack of type information. Our Pynguin framework provides automated unit test generation for Python. In this paper, we extend our previous work on Pynguin to support more aspects of the Python language, and by stud… Show more

Help me understand this report
View preprint versions

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
1

Citation Types

0
37
0

Year Published

2021
2021
2024
2024

Publication Types

Select...
3
2
2

Relationship

0
7

Authors

Journals

citations
Cited by 41 publications
(37 citation statements)
references
References 47 publications
0
37
0
Order By: Relevance
“…Without knowing all these details about valid inputs, testing DenseNet using a general-purpose automated test-case generator (for example, Pynguin [16]) would trigger lots of spurious failures, when executing tests that call DenseNet with invalid inputs. The few failing but valid tests that trigger bugs such as that in Lst.…”
Section: An Example Of Using Annotestmentioning
confidence: 99%
See 2 more Smart Citations
“…Without knowing all these details about valid inputs, testing DenseNet using a general-purpose automated test-case generator (for example, Pynguin [16]) would trigger lots of spurious failures, when executing tests that call DenseNet with invalid inputs. The few failing but valid tests that trigger bugs such as that in Lst.…”
Section: An Example Of Using Annotestmentioning
confidence: 99%
“…As we mentioned earlier, NN programs are written in dynamically typed languages like Python, where the type of variables is unknown statically. Therefore, generating valid inputs is challenging with techniques such as random testing and genetic algorithms, which typically assume a variable's type is known [16]. Even if type annotations were available, NN programs routinely manipulate complex data structures-such as vectors, tensors, and other objects-whose precise "shape" is not expressible with the standard types (integers, strings, and so on).…”
Section: Introductionmentioning
confidence: 99%
See 1 more Smart Citation
“…In 2020, Lukasczyk et al introduced a tool, capable of test generation for Python, Pynguin 11 . Pynguin, however, leverages the techniques used in statically typed languages through the assumption that the system under test contains type information with Python's type annotations.…”
Section: Introductionmentioning
confidence: 99%
“…2020 Lukasczyk et al introduced Pynguin11 . A tool that can automatically generate unit tests for Python.…”
mentioning
confidence: 99%