question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot rerun failed tests using IntelliJ Kotest plugin

See original GitHub issue

Which 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:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
sksamuelcommented, Feb 6, 2021

It’s the stale bot, nothing personal 😃

0reactions
mkotsbakcommented, Jul 9, 2021

Looks like this works now, so state set by the bot is correct.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found