From 006059438ff7b89b8b73c7f4d096c3ee24925744 Mon Sep 17 00:00:00 2001 From: meisl Date: Mon, 28 Jun 2021 18:49:01 +0200 Subject: [PATCH] + same warning on the other "TestCompilerXyz" file --- compiler/test/TestCompilerOnCharLit.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/compiler/test/TestCompilerOnCharLit.kt b/compiler/test/TestCompilerOnCharLit.kt index 2a44b34dd..245f9fe39 100644 --- a/compiler/test/TestCompilerOnCharLit.kt +++ b/compiler/test/TestCompilerOnCharLit.kt @@ -15,6 +15,14 @@ import prog8.compiler.target.Cx16Target import prog8.compiler.compileProgram +/** + * ATTENTION: this is just kludge! + * They are not really unit tests, but rather tests of the whole process, + * from source file loading all the way through to running 64tass. + * What's more: in case of failure (to compile and assemble) - which is when tests should help you - + * these tests will actually be ignored (ie. NOT fail), + * because in the code there are calls to Process.exit, making it essentially untestable. + */ @TestInstance(TestInstance.Lifecycle.PER_CLASS) class TestCompilerOnCharLit { val workingDir = Path("").absolute() // Note: Path(".") does NOT work..!