diff --git a/JUnit.md b/JUnit.md index c9a6fc4..35ff57e 100644 --- a/JUnit.md +++ b/JUnit.md @@ -1,6 +1,6 @@ ## Getting JUnit XML from ShellCheck -ShellCheck does not have a JUnit XML formatter, but here you can find `checkstyle2junit.xslt`, an XSLT program that converts from CheckStyle's XML output to JUnit's XML. +ShellCheck does not have a JUnit XML formatter, but [at the end of this article](#checkstyle2junitxslt) you can find `checkstyle2junit.xslt`, an XSLT program that converts from CheckStyle's XML output to JUnit's XML. Here's ShellCheck's (CheckStyle-compatible) XML output: @@ -34,7 +34,8 @@ $ shellcheck -f checkstyle foo.bash bar.bash | xmlstarlet tr checkstyle2junit.xs ``` -`checkstyle2junit.xslt`: +### `checkstyle2junit.xslt` + ```xslt