Clojure library to display TestNG reports at the top of a LambdaCD step.
In your namespace declaration:
(ns myapp.core
(:require [lambdacd-testng :as testng]))
Use it in LambdaCD within your build step. For example:
(defn compile-to-jar
[{cwd :cwd {revision :revision} :global} ctx]
(let [version (str "0.1." (System/currentTimeMillis))
shell-result (shell/bash ctx cwd (str "ci/buildscripts/build.sh " version " " revision))]
(assoc shell-result :details [(testng/get-testng-report-as-details "build/reports/tests/testng-results.xml")])))
Test without errors:
Test with errors:
-- coming soon --
Copyright © 2015 OTTO (GmbH & Co. KG)
Distributed under Apache Public License 2.0.