lingua-franca 0.10.1
Lingua Franca code generator
Loading...
Searching...
No Matches
org.lflang.tests.TestRegistry Class Reference

A registry to retrieve tests from, organized by target and category. More...

Classes

enum  TestCategory
 Enumeration of test categories, used to map tests to categories. More...
class  TestMap

Public Member Functions

String getCoverageReport (Target target, TestCategory category)
Set< LFTestgetIgnoredTests (Target target, TestCategory category)
 Return the test that were found but not indexed because they did not have a main reactor.
Set< LFTestgetRegisteredTests (Target target, TestCategory category, boolean copy)
 Return the tests that were indexed for a given target and category.
void initialize ()

Static Public Attributes

static final List< String > IGNORED_DIRECTORIES
 List of directories that should be skipped when indexing test files.
static final Path LF_REPO_PATH = Paths.get("").toAbsolutePath()
 Path to the root of the repository.
static final Path LF_TEST_PATH = LF_REPO_PATH.resolve("test")
 Path to the test directory in the repository.

Detailed Description

A registry to retrieve tests from, organized by target and category.

Author
Marten Lohstroh

Member Function Documentation

◆ getCoverageReport()

String org.lflang.tests.TestRegistry.getCoverageReport ( Target target,
TestCategory category )

◆ getIgnoredTests()

Set< LFTest > org.lflang.tests.TestRegistry.getIgnoredTests ( Target target,
TestCategory category )

Return the test that were found but not indexed because they did not have a main reactor.

◆ getRegisteredTests()

Set< LFTest > org.lflang.tests.TestRegistry.getRegisteredTests ( Target target,
TestCategory category,
boolean copy )

Return the tests that were indexed for a given target and category.

Parameters
targetThe target to get indexed tests for.
categoryThe category of tests to include in the returned tests.
copyWhether to return copies of the indexed tests instead of the indexed tests themselves.
Returns
A set of tests for the given target/category.

◆ initialize()

void org.lflang.tests.TestRegistry.initialize ( )

Member Data Documentation

◆ IGNORED_DIRECTORIES

final List<String> org.lflang.tests.TestRegistry.IGNORED_DIRECTORIES
static
Initial value:
=
List.of("failing", "knownfailed", "failed", "fed-gen")

List of directories that should be skipped when indexing test files.

Any test file that has a directory in its path that matches an entry in this array will not be discovered.

◆ LF_REPO_PATH

final Path org.lflang.tests.TestRegistry.LF_REPO_PATH = Paths.get("").toAbsolutePath()
static

Path to the root of the repository.

◆ LF_TEST_PATH

final Path org.lflang.tests.TestRegistry.LF_TEST_PATH = LF_REPO_PATH.resolve("test")
static

Path to the test directory in the repository.


The documentation for this class was generated from the following file:
  • /Users/runner/work/lingua-franca/lingua-franca/core/src/testFixtures/java/org/lflang/tests/TestRegistry.java