SoftwareX (Feb 2025)

Multtestlib: A Python package for performing unit tests using multiprocessing

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

Journal volume & issue
Vol. 29
p. 101986

Abstract

Read online

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.

Keywords