ShouldSpec not executing a single test
See original GitHub issueclass Foo : ShouldSpec({
context("A") {
should("B") {
throw RuntimeException()
}
}
should("C") {
throw RuntimeException()
}
})
When using the plugin, executing “A” runs both “A” and “B”. Executing “B” also runs “A” and “B”. Both fail as expected.
When running “C”, it won’t be executed by the plugin.
The only way to execute C is using the class, executing Foo
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:10 (6 by maintainers)
Top Results From Across the Web
How to run a single test in a context using kotest/kotlintest
I try to execute it in IntelliJ Idea. Unfortunately it executes both test in the suite. It works well if I don't nest...
Read more >Testing Styles - Kotest
To use Kotest, create a class file that extends one of the test styles. ... ShouldSpec is similar to fun spec, but uses...
Read more >kotest/reference_3.1.md at master - GitHub
It is common to see several styles in one project. You can choose a testing style by extending StringSpec, WordSpec, FunSpec, ShouldSpec, FeatureSpec, ......
Read more >Introduction to Kotest | Baeldung on Kotlin
In this tutorial, we'll focus on running the tests only on the JVM ... class MoneyTests : ShouldSpec({ should("Convert input money to the ......
Read more >Parameterized tests with Kotest - Kotlin Testing
Creating parameterized tests in Kotlin: data driven testing, ... (it does not round up or down values), so we could see how failing...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same here for
DescribeSpec
, with a very simple repro:Repro code
and
debug output
That’s with Kotest 4.1.1, IJ plugin 1.0.5 and Android Studio 4.2 Canary 4 (Build #AI-201.7846.76.42.6636798).
What’s interesting though is that if I run the test contextually (Run context configuration action, ctrl+shift+r) with cursor at a specific
it
test, it will run only that one testSame with BehaviorSpec. kotest 4.1.1, plugin 1.0.5.
Running gutter icons “given”, “when”, “then” all create run/debug configurations, but won’t execute. Only log message you see in Test Results is: