From de694f30b5e2f6fd62a00e5a622abe0a2411afb9 Mon Sep 17 00:00:00 2001 From: nea Date: Tue, 15 Aug 2023 20:33:58 +0200 Subject: Add github actions testing --- test/src/TestLisp.kt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/src/TestLisp.kt') diff --git a/test/src/TestLisp.kt b/test/src/TestLisp.kt index 1f0c424..1f287ca 100644 --- a/test/src/TestLisp.kt +++ b/test/src/TestLisp.kt @@ -3,6 +3,7 @@ import moe.nea.lisp.LispParser import moe.nea.lisp.TestResultFormatter import java.io.File import javax.xml.stream.XMLOutputFactory +import kotlin.system.exitProcess object T @@ -21,4 +22,7 @@ fun main() { .createXMLStreamWriter(File("TestOutput.xml").bufferedWriter()) TestResultFormatter.write(w, listOf(testResults)) w.close() + if (testResults.allTests.any { it.failures.isNotEmpty() }) { + exitProcess(1) + } } -- cgit