From 7cbcec85b3e322cec39c02e4657ff9ec793b28c8 Mon Sep 17 00:00:00 2001
From: Cedric Beust BuildConfig
.
+ Kobalt will automatically attempt to run test classes found in the test directory with the
+ correct runner (e.g. TestNG, JUnit, Spek, etc...). Additionally, you can configure how
+ these tests are run with the test{}
directive, which accepts the following
+ parameters:
+
+ Here are a few examples of test{}
directives:
+
+test { + args("-log", "1", "src/test/resources/testng.xml") +}+
+ Specifying includes and excludes: +
++test { + includes("**/D*.class") + excludes("**/BrokenTest.class", "**/NotYetImplementedTest.class") +}+
+ Note that includes
and excludes
are path globs: they must match the
+ entire path of the class and they can use **
and *
to match any
+ directory or file name.
+
The "application" plug-in lets you run your application directly from kobaltw
. You configure
it as follows: