Carving Parameterized Unit Tests

12/19/2018
by   Alexander Kampmann, et al.
0

We present a method to automatically extract ("carve") parameterized unit tests from system executions. The unit tests execute the same functions as the system tests they are carved from, but can do so much faster as they call functions directly; furthermore, being parameterized, they can execute the functions with a large variety of randomly selected input values. If a unit-level test fails, we lift it to the system level to ensure the failure can be reproduced there. Our method thus allows to focus testing efforts on selected modules while still avoiding false alarms: In our experiments, running parameterized unit tests for individual functions was, on average, 30 times faster than running the system tests they were carved from.

READ FULL TEXT

page 2

page 3

page 4

page 5

page 6

page 7

page 12

page 13

research
06/04/2019

Bridging the Gap between Unit Test Generation and System Test Generation

Common test generators fall into two categories. Generating test inputs ...
research
03/03/2021

An Empirical Analysis of UI-based Flaky Tests

Flaky tests have gained attention from the research community in recent ...
research
07/19/2023

VAPI: Vectorization of Algorithm for Performance Improvement

This study presents the vectorization of metaheuristic algorithms as the...
research
02/13/2023

Adaptive Test Generation Using a Large Language Model

Unit tests play a key role in ensuring the correctness of software. Howe...
research
02/09/2023

RICK: Generating Mocks from Production Data

Test doubles, such as mocks and stubs, are nifty fixtures in unit tests....
research
07/24/2021

Linear unit-tests for invariance discovery

There is an increasing interest in algorithms to learn invariant correla...
research
05/14/2019

Faster Creation of Smaller Test Suites (with SNAP)

State-of-the-art theorem provers, combined with smart sampling heuristic...

Please sign up or login with your details

Forgot password? Click here to reset