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 …

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 …

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 …

Smartunit: Empirical evaluations for automated unit testing of embedded software in industry

C Zhang, Y Yan, H Zhou, Y Yao, K Wu, T Su… - Proceedings of the 40th …, 2018 - dl.acm.org
In this paper, we aim at the automated unit coverage-based testing for embedded software.
To achieve the goal, by analyzing the industrial requirements and our previous work on …

What do the asserts in a unit test tell us about code quality? a study on open source and industrial projects

MF Aniche, GA Oliva, MA Gerosa - 2013 17th European …, 2013 - ieeexplore.ieee.org
Unit tests and production code are intrinsically connected. A class that is easy to test usually
presents desirable characteristics, such as low coupling and high cohesion. Thus, finding …

Optimizing unit test execution in large software programs using dependency analysis

T Kim, R Chandra, N Zeldovich - Proceedings of the 4th Asia-Pacific …, 2013 - dl.acm.org
Tao is a system that optimizes the execution of unit tests in large software programs and
reduces the programmer wait time from minutes to seconds. Tao is based on two key ideas …

Cross-checking oracles from intrinsic software redundancy

A Carzaniga, A Goffi, A Gorla, A Mattavelli… - Proceedings of the 36th …, 2014 - dl.acm.org
Despite the recent advances in automatic test generation, testers must still write test oracles
manually. If formal specifications are available, it might be possible to use decision …

Automated static analysis of unit test code

R Ramler, M Moser, J Pichler - 2016 IEEE 23rd International …, 2016 - ieeexplore.ieee.org
Automated unit tests are an essential software quality assurance measure that is widely
used in practice. In many projects, thus, large volumes of test code have co-evolved with the …

Unit testing: Static analysis and dynamic analysis

N Zhang, X Bao, Z Ding - 2009 Fourth International Conference …, 2009 - ieeexplore.ieee.org
Unit testing is used by programmers to discover bugs with least cost. Static unit testing offers
the minimum path coverage while dynamic unit testing detects control and data flow …

TestSpark: IntelliJ IDEA's Ultimate Test Generation Companion

A Sapozhnikov, M Olsthoorn, A Panichella… - Proceedings of the …, 2024 - dl.acm.org
Writing software tests is laborious and time-consuming. To address this, prior studies
introduced various automated test-generation techniques. A well-explored research …