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.

IntelliJ Gradle Testing Support

See original GitHub issue

kotest version 4.2.3. Latest version of IntelliJ IDEA CE.

I just recently updated to kotest from kotlintest. In the past, IntelliJ was able to at least identify entire kotlintest StringSpec blocks as tests. You could then use f: focusing to pick out individual tests to run, even if (IIRC) IntelliJ couldn’t identify individual tests within the spec.

Since the upgrade to kotest there is no option to run tests. I have tried the kotest plugin, but it doesn’t seem to honor my settings to run tests with Gradle, which I’d like to continue doing so that I don’t need to duplicate test configurations in two places.

Is this the expected behavior—or a bug with the kotest IntelliJ plugin, or something wonky about my environment? Unfortunately this represents a fairly serious regression for our use case, since our project has a large number of tests and the entire suite runs quite slowly.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:22 (12 by maintainers)

github_iconTop GitHub Comments

4reactions
mriehlcommented, Jan 14, 2021

What’s the status on this? I’m using the kotest intellij plugin 1.1.24-IC-2020.3 and I cannot get idea to run the tests with gradle. The “run tests using” option is set to gradle, and I’ve tried deleting the test configurations, but no luck so far.

Edit: so running the entire spec class seems to work and uses gradle. It’s running one of the nested tests that doesn’t use gradle as expected (I am using FreeSpec). Is this a known limitation of the current implementation - that running an entire spec with gradle is possible, but running one of the nested tests is not?

1reaction
sksamuelcommented, Oct 7, 2020

How are you getting on with the new build @gchallen ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Testing in Gradle | IntelliJ IDEA Documentation - JetBrains
In your Gradle project, in the editor, create or select a test to run. · From the context menu, select Run <test name>....
Read more >
Gradle tasks | IntelliJ IDEA Documentation - JetBrains
IntelliJ IDEA lets you run, debug and manage Gradle tasks in your project. Run Gradle tasks. You can use several ways to run...
Read more >
Getting Started with Gradle | IntelliJ IDEA Documentation
In this tutorial, we'll create a Gradle project, will run and test it, and run the executable JAR file using Gradle.
Read more >
Unit Tests run from Gradle and IDEA differ
I currently have a project that generates different test results depending on if I run them through Gradle -> Tasks -> Verification ->...
Read more >
Run tests | IntelliJ IDEA Documentation - JetBrains
To run all tests in a folder, select this folder in the Project tool window and press Ctrl+Shift+F10 or select Run Tests in...
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