idea-plugin / arrow.meta.ide.testing / IdeTest

IdeTest

data class IdeTest<F : IdeSyntax, A>

IdeTest eventually completes with a test result A and has F as its plugin context for dependencies and features. test results with A defines what exact test is run based on the code. result describes the expected shape of A with a custom message. F is the plugin context, where dependencies and features can be used to define test and/or result.

See Also

IdeResolution

Constructors

<init> IdeTest eventually completes with a test result A and has F as its plugin context for dependencies and features. test results with A defines what exact test is run based on the code. result describes the expected shape of A with a custom message. F is the plugin context, where dependencies and features can be used to define test and/or result.IdeTest(code: Source, test: IdeEnvironment.(Source, myFixture: CodeInsightTestFixture, ctx: F) -> A, result: IdeResolution<F, A>)

Properties

code val code: Source
result val result: IdeResolution<F, A>
test val test: IdeEnvironment.(Source, myFixture: CodeInsightTestFixture, ctx: F) -> A

Extension Functions

runTest runTest executes the test with a custom interpreter, which facilitates to run a test in any environment, based on a plugin context F. Hence, the Testing DSL for IntelliJ supports pure or impure Test environments and allows to compose them in a variety of testing methods such as property-based testing, unit tests and many more.fun <F : IdeSyntax, A> IdeTest<F, A>.runTest(fixture: CodeInsightTestFixture, ctx: F, interpreter: (test: IdeTest<F, A>, ctx: F, fixture: CodeInsightTestFixture) -> Unit = ::interpreter): Unit
testResult testResult evaluates the actual result within the IdeEnvironmentfun <F : IdeSyntax, A> IdeTest<F, A>.testResult(ctx: F, fixture: CodeInsightTestFixture): A

Do you like Arrow?

Arrow Org
<