ProjectTest

abstract class ProjectTest : HasTestEnvironmentFactory<ProjectTestEnvironmentFactory> (source)

Base test class for tests related to projects. Provides useful utility functions for setting up project-related tests.

Constructors

Link copied to clipboard
constructor()

Properties

Functions

Link copied to clipboard
open fun <ENV : TestEnvironment> HasTestEnvironmentFactory<NoParamTestEnvironmentFactory<ENV>>.test(names: List<String>, testLocation: TestLocation, testAction: suspend ENV.() -> Unit)
open fun <ENV : TestEnvironment> test(testEnvironmentFactory: NoParamTestEnvironmentFactory<ENV>, names: List<String>, testLocation: TestLocation, testAction: suspend ENV.() -> Unit)
open fun <PARAM, ENV : TestEnvironment> HasTestEnvironmentFactory<ParamTestEnvironmentFactory<PARAM, ENV>>.test(param: PARAM, names: List<String>, testLocation: TestLocation, testAction: suspend ENV.() -> Unit)
open fun <PARAM, ENV : TestEnvironment> test(param: PARAM, testEnvironmentFactory: TestEnvironmentFactory<PARAM, ENV>, names: List<String>, testLocation: TestLocation, testAction: suspend ENV.() -> Unit)

fun test(testLocation: TestLocation = TestLocation.get(), testAction: suspend ProjectTestEnvironment.() -> Unit)

shorthand for executing a test in a hermetic TestEnvironment but without any kase parameters

Link copied to clipboard
fun File.writeText(content: String)

Writes the specified content to the receiver File with the default charset.