Multtestlib: A Python package for performing unit tests using multiprocessing

This paper presents a novel Python package designed to accelerate the execution of unit tests by capitalizing on multiprocessing techniques. To circumvent the limitations imposed by Python’s Global Interpreter Lock (GIL), which precludes concurrent execution, the proposed solution leverages threads through the reuse of code from the concurrent.futures module. Performance benchmarks comparing this approach to the standard unittest framework and the Pytest testing framework demonstrated time reductions in both scenarios. The findings suggest that this methodology could assist in software development in the Python language.

Authors

Institutions

Publication Details

Journal
SoftwareX
Published
2024-12-03
DOI
https://doi.org/10.1016/j.softx.2024.101986
Primary Topic
Software Testing and Debugging Techniques
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Multtestlib: A Python package for performing unit tests using multiprocessing

Ricardo Ribeiro de Alvarenga, Luiz Alberto Vieira Dias, Adilson Marques da Cunha
SoftwareX
Software Testing and Debugging Techniques
article

Multtestlib: A Python package for performing unit tests using multiprocessing

Ricardo Ribeiro de Alvarenga, Luiz Alberto Vieira Dias, Adilson Marques da Cunha
article en

Abstract

This paper presents a novel Python package designed to accelerate the execution of unit tests by capitalizing on multiprocessing techniques. To circumvent the limitations imposed by Python’s Global Interpreter Lock (GIL), which precludes concurrent execution, the proposed solution leverages threads through the reuse of code from the concurrent.futures module. Performance benchmarks comparing this approach to the standard unittest framework and the Pytest testing framework demonstrated time reductions in both scenarios. The findings suggest that this methodology could assist in software development in the Python language.

SoftwareXVol. 29
Instituto Tecnológico de Aeronáutica (BR)
Initial Teaching Alphabet Foundation, Instituto Tecnológico de Aeronáutica, Ministerio de Educación, Cultura y Deporte, Fundação Casimiro Montenegro Filho, Ministério da Educação
Openalex Percentile: Top 77%
Software Testing and Debugging Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.