interface SpecConfigurationMethods
Contains methods which can be overriden to set config in the same way that KotlinTest 3.x allowed. The preferred style is to call the DSL functions from within the tests but these methods are still supported and will not be deprecated.
afterSpec |
open fun afterSpec(spec: Spec): Unit |
afterTest |
open fun afterTest(testCase: TestCase, result: TestResult): Unit |
assertionMode |
open fun assertionMode(): AssertionMode? |
beforeSpec |
open fun beforeSpec(spec: Spec): Unit |
beforeTest |
open fun beforeTest(testCase: TestCase): Unit |
defaultTestCaseConfig |
open fun defaultTestCaseConfig(): TestCaseConfig? |
extensions |
Override this function to register extensions which will be invoked during execution of this spec. open fun extensions(): List<Extension> |
isolationMode |
open fun isolationMode(): IsolationMode? |
listeners |
Override this function to register instances of TestListener which will be notified of events during execution of this spec. open fun listeners(): List<TestListener> |
tags |
Any tags added here will be in applied to all TestCases defined in this Spec in addition to any defined on the individual tests themselves. open fun tags(): Set<Tag> |
testCaseOrder |
Sets the order of top level TestCases in this spec. If this function returns a null value, then the value set in the AbstractProjectConfig will be used. open fun testCaseOrder(): TestCaseOrder? |
Spec |
abstract class Spec : TestConfiguration, SpecConfigurationMethods |