Multtestlib: A Parallel Approach to Unit Testing in Python

ITNG 2023 20th International Conference on Information Technology-New Generations(2023)

引用 0|浏览0
暂无评分
摘要
In this article, we propose a solution to improve the speed of Unit Tests in Python Language by the creation of a package, also in Python, to run unit tests using parallel processing. It was necessary to side-step Python’s GIL (Global Interpreter Lock) which prevents parallel processing. With the reuse of code from the multprocessing package, it was possible to execute code in parallel, using subprocesses instead of the threads used by the GIL. Performance tests were carried out, comparing the developed solution with the unittest, from the standard library, such tests demonstrated that it is possible to carry out unit tests, in Python, using multiprocessors to reduce running time. The authors believe that, based on the results presented, this is a promising technique and that the developed package may eventually be included in a Python library.
更多
查看译文
关键词
High Performance Computing, Multiprocessing, Open Source, Parallel Computing, Python, Software Engineering, Software Quality, Software Testing, Test Driven Development, Unit Test, White-Box Testing
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要