klyn.unittest.TestRunner.runSources
method
public runSources(sources as IList<FilePath>) as TestReport:
Description

Executes an explicit list of test source files.

Every source must be located below this runner's root and declare @TestClass. This entry point is intended for IDE actions on a test file or class.

Parameters
ParameterDescription
sourcesTest source files to execute.
Returns

Complete structured report.

Throws
  • ValueException if a source escapes the test root or does not declare a test class.
Example
report = runner.runSources([
FilePath("tests/klyn/collections/ArrayTest.kn")
])