Extracting Inline Tests from Unit Tests

Y Liu, P Nie, A Guo, M Gligoric… - Proceedings of the 32nd …, 2023 - dl.acm.org
We recently proposed inline tests for validating individual program statements; they allow
developers to provide test inputs, expected outputs, and test oracles immediately after a …

Inline tests

Y Liu, P Nie, O Legunsen, M Gligoric - Proceedings of the 37th IEEE …, 2022 - dl.acm.org
Unit tests are widely used to check source code quality, but they can be too coarse-grained
or ill-suited for testing individual program statements. We introduce inline tests to make it …

Tests from traces: automated unit test extraction for R

F Křikava, J Vitek - Proceedings of the 27th ACM SIGSOFT International …, 2018 - dl.acm.org
Unit tests are labor-intensive to write and maintain. This paper looks into how well unit tests
for a target software package can be extracted from the execution traces of client code. Our …

Tool-assisted unit-test generation and selection based on operational abstractions

T Xie, D Notkin - Automated Software Engineering, 2006 - Springer
Unit testing, a common step in software development, presents a challenge. When produced
manually, unit test suites are often insufficient to identify defects. The main alternative is to …

Generating parameterized unit tests

G Fraser, A Zeller - Proceedings of the 2011 international symposium on …, 2011 - dl.acm.org
State-of-the art techniques for automated test generation focus on generating executions
that cover program behavior. As they do not generate oracles, it is up to the developer to …

Finding bugs by isolating unit tests

K Muşlu, B Soran, J Wuttke - Proceedings of the 19th ACM SIGSOFT …, 2011 - dl.acm.org
Even in simple programs there are hidden assumptions and dependencies between units
that are not immediately visible in each involved unit. These dependencies are generally …

pytest-inline: An inline testing tool for Python

Y Liu, Z Thurston, A Han, P Nie… - 2023 IEEE/ACM 45th …, 2023 - ieeexplore.ieee.org
We present pytest-inline, the first inline testing framework for Python. We recently proposed
inline tests to make it easier to test individual program statements. But, there is no framework …

Mutation-driven generation of unit tests and oracles

G Fraser, A Zeller - Proceedings of the 19th international symposium on …, 2010 - dl.acm.org
To assess the quality of test suites, mutation analysis seeds artificial defects (mutations) into
programs; a non-detected mutation indicates a weakness in the test suite. We present an …

[HTML][HTML] On guiding the augmentation of an automated test suite via mutation analysis

BH Smith, L Williams - Empirical software engineering, 2009 - Springer
Mutation testing has traditionally been used as a defect injection technique to assess the
effectiveness of a test suite as represented by a “mutation score.” Recently, mutation testing …

Output sampling for output diversity in automatic unit test generation

HD Menéndez, M Boreale, D Gorla… - IEEE Transactions on …, 2020 - ieeexplore.ieee.org
Diverse test sets are able to expose bugs that test sets generated with structural coverage
techniques cannot discover. Input-diverse test set generators have been shown to be …