loganhuskins
loganhuskins

Reputation: 1479

Intellij No Tests Found Kotlin

I am trying to work through the Kotlin Koans in Intellij Idea Ultimate 2017.2 and I am having issues running the tests. I have marked the test directory as such, but when I try to run them as a whole or individually with the triangle arrow in the gutter that Intellij adds to tests I get a "No tests were found" error.

Screenshots are attached.

Filepath

Gutter

Error

Upvotes: 4

Views: 2373

Answers (1)

Andrey
Andrey

Reputation: 16431

I have marked the test directory as such, but when I try to run them as a whole or individually with the triangle arrow in the gutter that Intellij adds to tests I get a "No tests were found" error.

You have it marked (incorrectly) as a test resource, not test source. Make sure to open the project by importing from Gradle then IDE will automatically configure the project structure and set the folders categories as needed.

Upvotes: 1

Related Questions