News: 0001642172

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Linux's KUnit Finally Supporting JUnit Output

([Linux Kernel] 6 Hours Ago KUnit JUnit)


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 [1]proposed nearly a decade ago and was [2]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.

[3]

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 [4]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.



[1] https://www.phoronix.com/news/Linux-Kernel-KUnit-Framework

[2] https://www.phoronix.com/news/KUnit-For-Linux-5.5

[3] https://www.phoronix.com/image-viewer.php?id=2026&image=junit_example_lrg

[4] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=42eb3a5ef6bc56192bf450c79a3f274e081f8131



it has Intel Inside