Cannot rerun failed tests using IntelliJ Kotest plugin
See original GitHub issueWhich version of Kotest are you using 4.3.1
When I try to use “Rerun failed tests” in IntelliJ with Kotest plugin, I get a message: “Test events were not received”.
Log:
> Task :compileKotlin UP-TO-DATE
> Task :compileJava NO-SOURCE
> Task :processResources UP-TO-DATE
> Task :classes UP-TO-DATE
> Task :compileTestKotlin UP-TO-DATE
> Task :compileTestJava NO-SOURCE
> Task :processTestResources NO-SOURCE
> Task :testClasses UP-TO-DATE
> Task :test
~~~ Kotest Configuration ~~~
-> Parallelization factor: 1
-> Default test timeout: 600000ms
-> Default test order: Sequential
-> Default isolation mode: InstancePerLeaf
-> Global soft assertations: False
-> Write spec failure file: False
-> Fail on ignored tests: False
-> Spec execution order: SpecExecutionOrder
-> Extensions
- io.kotest.engine.extensions.SystemPropertyTagExtension
- io.kotest.core.extensions.RuntimeTagExtension
- io.kotest.engine.extensions.RuntimeTagExpressionExtension
-> Listeners
- beforeAfterAllListener$1
> Task :test FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':test'.
> No tests found for given includes: [day_01.SecondTaskTest.throws if no correct answer](filter.includeTestsMatching)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s
4 actionable tasks: 1 executed, 3 up-to-date
My test that certainly exists:
test("throws if no correct answer") {
val input = """
1721
979
366
675
1456
""".trimIndent()
val result = { SecondTask.calculate(input) }
shouldThrow<IllegalStateException>(result)
}
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Cannot rerun failed tests using IntelliJ Kotest plugin · Issue #114
When I try to use "Rerun failed tests" in IntelliJ with Kotest plugin, I get a message: "Test events were not received". Log:...
Read more >Rerun failed tests doesn't work with gradle and JUnit 5
Prerequisites: Set gradle as default test runner. Steps to reproduce: Create a gradle project with kotlin for tests; Create a test what will...
Read more >Rerun failed tests reruns all tests in suite. : IDEA-51817
Rerun failed tests no longer just runs the failed tests - it runs them all. Activity settings ... Encountered the same problem in...
Read more >Re-Running Failed Tests | TeamCity Plugin for IntelliJ Platform ...
In the Failed tests tab, select the failed test(s) to re-run. On the toolbar, click img or img , respectively, and then choose...
Read more >Run tests | IntelliJ IDEA Documentation - JetBrains
Place the caret at the test class to run all tests in that class, or at the test ... Hold Shift and click...
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
It’s the stale bot, nothing personal 😃
Looks like this works now, so state set by the bot is correct.