# Can't use TestNG with Kotlin

**URL:** <https://discuss.kotlinlang.org/t/cant-use-testng-with-kotlin/192>\
**Category:** Uncategorized\
**Created:** [July 24, 2015, 8:54pm UTC](https://discuss.kotlinlang.org/t/cant-use-testng-with-kotlin/192 "2015-07-24T20:54:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cedricbeust](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/cedricbeust/32/1429_2.png) [@cedricbeust](https://discuss.kotlinlang.org/u/cedricbeust)\
**Post date:** [July 24, 2015, 8:54pm UTC](https://discuss.kotlinlang.org/t/cant-use-testng-with-kotlin/192/1 "2015-07-24T20:54:54Z")

</div>

I can't get TestNG to work at all with Kotlin, IDEA doesn't even see the symbols from Gradle.

It works fine with JUnit:

```kotlin

```

---

<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:** [July 27, 2015, 11:46am UTC](https://discuss.kotlinlang.org/t/cant-use-testng-with-kotlin/192/2 "2015-07-27T11:46:15Z")

</div>

I don't seem to be able to reproduce the problem. Do you see TestNG in the Project view under "External libraries"? Can you navigate to org.testng.annotations.Test using the Goto Class action? Does File | Invalidate Caches help?

---

<div class="post-metadata">

**Author:** ![cedricbeust](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/cedricbeust/32/1429_2.png) [@cedricbeust](https://discuss.kotlinlang.org/u/cedricbeust)\
**Post date:** [July 27, 2015, 6:18pm UTC](https://discuss.kotlinlang.org/t/cant-use-testng-with-kotlin/192/3 "2015-07-27T18:18:45Z")

</div>

I just restarted and tried again and this time, everything works fine. I could have sworn I did this multiple times already... oh well.

Thanks! I’ll close the associated issue.
