



























KUnit as the unit testing framework for the Linux kernel and was inspired in part by Java's JUnit when originally conceived, is now finally able to output to the JUnit format for better interoperability with other CI systems and the like that standardize on that common format.
KUnit was proposed nearly a decade ago and was merged for Linux 5.5 that released in early 2020. While KUnit was inspired by JUnit, Python unittest.mock, and GoogleTest, it's taken around six years to see JUnit output support added to this unit testing framework.
Finally with the Linux 7.2 kernel, JUnit XML output support is merged. The intention with adding it is around better interoperability with Jenkins and other continuous integration (CI) systems relying on that common format. For Linux 7.2, it's a "primitive" level of support for JUnit.
With the now merged KUnit updates for Linux 7.2, the "--junit" argument can be used to output to JUnit XML as an alternative to JSON and other formats already handled by KUnit.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。