1 import "String" as String
3 importJava "org.simantics.scl.compiler.testing.TestRunnable" where
7 nameOf :: Test -> String
9 runSilent :: Test -> <Proc> ()
11 run :: Test -> <Proc> ()
13 print "=== \(nameOf test) ======================================="
16 instance Show Test where
19 importJava "org.simantics.scl.osgi.internal.TestUtils" where
21 allTests :: <Proc> [Test]
24 list = iter print allTests
26 runByName :: String -> <Proc> ()
28 for allTests (\test -> if nameOf test == name
32 runByPattern :: String -> <Proc> ()
33 runByPattern patternText = do
34 pattern = String.compile patternText
35 for allTests (\test -> if String.matches (String.matcher pattern (nameOf test))
40 runAll = for allTests run
42 importJava "org.simantics.scl.osgi.internal.ModuleUtils" where
44 Tries to compile all modules in SCLOsgi context and prints
45 all compilation errors related to the modules.
47 validateModules :: <Proc> ()