# Run common module test in Intellij

**URL:** <https://discuss.kotlinlang.org/t/run-common-module-test-in-intellij/6086>\
**Category:** Uncategorized\
**Created:** [January 4, 2018, 4:36pm UTC](https://discuss.kotlinlang.org/t/run-common-module-test-in-intellij/6086 "2018-01-04T16:36:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![knolle](https://avatars.discourse-cdn.com/v4/letter/k/a9adbd/32.png) [@knolle](https://discuss.kotlinlang.org/u/knolle)\
**Post date:** [January 4, 2018, 4:36pm UTC](https://discuss.kotlinlang.org/t/run-common-module-test-in-intellij/6086/1 "2018-01-04T16:36:43Z")

</div>

I have a common module and a respective JVM module.  
The common module contains a function and a matching unit test, using the common annotations etc.  
The JVM module contains another class and associated test.

Now when I run the tests via `gradle :module-jvm:test` , the common module test is also executed. Thats fine!

But how can I run (and if necessary debug) the common module test in the IDE?  
If I run all JVM module tests in the IDE, the common module test is not executed.  
And, of course, it cannot be executed alone.

Help is appreciated 🙂

---

<div class="post-metadata">

**Author:** ![yole](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/yole/32/1425_2.png) [@yole](https://discuss.kotlinlang.org/u/yole)\
**Post date:** [January 5, 2018, 10:00am UTC](https://discuss.kotlinlang.org/t/run-common-module-test-in-intellij/6086/2 "2018-01-05T10:00:14Z")

</div>

Running common tests is supported in version 1.2.20 of the Kotlin plugin, which is currently available in EAP.

---

<div class="post-metadata">

**Author:** ![knolle](https://avatars.discourse-cdn.com/v4/letter/k/a9adbd/32.png) [@knolle](https://discuss.kotlinlang.org/u/knolle)\
**Post date:** [January 6, 2018, 12:39pm UTC](https://discuss.kotlinlang.org/t/run-common-module-test-in-intellij/6086/3 "2018-01-06T12:39:14Z")

</div>

Nice, thanks.

---

<div class="post-metadata">

**Author:** ![wudizhuo](https://avatars.discourse-cdn.com/v4/letter/w/ad7895/32.png) [@wudizhuo](https://discuss.kotlinlang.org/u/wudizhuo)\
**Post date:** [March 15, 2018, 11:50pm UTC](https://discuss.kotlinlang.org/t/run-common-module-test-in-intellij/6086/4 "2018-03-15T23:50:16Z")

</div>

Hi @yole  
I try to run Kotlin test in Android Studio then get this error. the command line is working well.  
Can you tell me how to run a single test in IDE?  
Help is appreciated 🙂 thank you

The project is [GitHub - JetBrains/kotlinconf-app: KotlinConf Schedule Application](https://github.com/JetBrains/kotlinconf-app.git), code is latest.  
Test file is DateTest.  
Android Studio version is ’ 3.0.1 ’  
Kotlin plugin version: 1.2.30-release-Studio3.0-1  
Process finished with exit code 1  
Class not found: "org.jetbrains.kotlinconf.DateTest"Empty test suite.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/kotlinlang/original/2X/5/53e6bd82f394c980298363e2371d690f9c032b57.png)  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/kotlinlang/original/2X/2/293829646af0d58fb0258fd0061053ca576d1214.png)
