EnvironmentBaseTest

sealed class EnvironmentBaseTest

A base test class that provides basic tests that any environment should respect.

This class DOES NOT run tests merely by subclassing it. Create a test of your own in your subclass that runs runTests. For example:

class TestEagerEnvironment : NotExtensibleEnvironmentBaseTest(::EagerImmutableMetaEnvironment) {
@Test
fun `Base tests`() {
runTests()
}
}

You should consider using NotExtensibleEnvironmentBaseTest or ExtensibleEnvironmentBaseTest depending on which environment you wish to test.

Inheritors

Properties

Link copied to clipboard
abstract val additionalTests: List<Pair<String, () -> Unit>>

Additional tests to run along with the default tests in runTests

Functions

Link copied to clipboard
fun runTests()

Runs all the basic tests from the base environment test, plus any additional tests defined in additionalTests