Yiyo Castillo
Yiyo Castillo

Reputation: 225

How can I run a single Android Test using Kotlin?

I am using Kotlin 1.0.3 for Android Development in Unit Testing but when I try to run a single test it runs all tests of the class. Does anyone know how to avoid that behaviour?

Upvotes: 6

Views: 1462

Answers (1)

yole
yole

Reputation: 97133

There's an issue with the IntelliJ Platform that causes the tests for the entire class to be executed if you try to run a single test method and have an existing run configuration for the entire class.

To run a single method, you need to delete the configuration for the entire class using the Run | Edit Configurations... action.

Upvotes: 8

Related Questions