spek
spek copied to clipboard
A specification framework for Kotlin
https://github.com/spekframework/spek/blob/e76356ac1259dcb65de24c6138d2288445ea8745/samples/android/app/build.gradle#L44 This block ``` unitTests.all { testLogging.events = ["passed", "skipped", "failed"] } ``` should be a child of the `testOptions` block, not the `jacocoOptions` block
The current recommended approach is by using `listOf` and nested `listOf`s for multiple rows. ```kotlin listOf( listOf(1, 2, 3), listOf(1, 2, 3) ).forEach { data -> { ... } ```...
I am trying to use Spek 2 for UI testing on Android but I always get an ExceptionInInitializerError when trying to launch an Activity with ActivityScenario.launch(...): ``` java.lang.ExceptionInInitializerError at androidx.test.core.app.ActivityScenario.launch(ActivityScenario.java:194)...
Problem reported by IDEA Stack trace: ``` update failed for AnAction(com.intellij.codeEditor.printing.PrintAction) with ID=Print com.intellij.psi.PsiInvalidElementAccessException: Element: class org.jetbrains.kotlin.psi.KtCallExpression #kotlin because: containing file is null; hierarchy=,class org.jetbrains.kotlin.psi.KtBlockExpressionclass org.jetbrains.kotlin.psi.KtFunctionLiteralclass org.jetbrains.kotlin.psi.KtLambdaExpressionclass org.jetbrains.kotlin.psi.KtLambdaArgumentclass org.jetbrains.kotlin.psi.KtCallExpression, context=null,...
I want to share a `memoized` `val` between different `Spek`s, since the `memoized` `val` is an `org.testcontainers` `DockerComposeContainer` which takes several minutes to be evaluated. But none of the `CachingMode`s...
Will be nice to have an example of one. Also. Is it possible to make it work with Spring?
reported by intellij ``` org.jetbrains.kotlin.utils.KotlinExceptionWithAttachments: Exception while analyzing expression at (36,13) in /home/robert/projects/atrium/apis/fluent-en_GB/atrium-api-fluent-en_GB-common/src/main/kotlin/ch/tutteli/atrium/api/fluent/en_GB/charSequenceAssertions.kt at org.jetbrains.kotlin.types.expressions.ExpressionTypingVisitorDispatcher.logOrThrowException(ExpressionTypingVisitorDispatcher.java:246) at org.jetbrains.kotlin.types.expressions.ExpressionTypingVisitorDispatcher.lambda$getTypeInfo$0(ExpressionTypingVisitorDispatcher.java:224) at org.jetbrains.kotlin.util.PerformanceCounter.time(PerformanceCounter.kt:101) at org.jetbrains.kotlin.types.expressions.ExpressionTypingVisitorDispatcher.getTypeInfo(ExpressionTypingVisitorDispatcher.java:164) at org.jetbrains.kotlin.types.expressions.ExpressionTypingVisitorDispatcher.getTypeInfo(ExpressionTypingVisitorDispatcher.java:134) at org.jetbrains.kotlin.types.expressions.ExpressionTypingVisitorDispatcher.getTypeInfo(ExpressionTypingVisitorDispatcher.java:146) at org.jetbrains.kotlin.types.expressions.ExpressionTypingServices.checkFunctionReturnType(ExpressionTypingServices.java:172) at org.jetbrains.kotlin.types.expressions.ExpressionTypingServices.checkFunctionReturnType(ExpressionTypingServices.java:155) at...
I can see #327 added support for the multiplatform project model, but I can't see any references to Kotlin/Native. Is this something you plan to support? If so, do you...
If a `memoized` value is accessed concurrently by many threads in the same test, then it might create the value many times. Example: ```kotlin describe("concurrent access to memoized") { val...
I have a regression with spek 2.0.13 (update from 2.0.12 to 2.0.13 fails) it seems like in some modules the test discovery does not work anymore. See https://travis-ci.com/github/robstoll/atrium/jobs/384465747#L1087 and https://travis-ci.com/github/robstoll/atrium/jobs/384465747#L1095...