# Why org.testng becomes Unresolvable reference in kotlin tests?

**URL:** <https://discuss.kotlinlang.org/t/why-org-testng-becomes-unresolvable-reference-in-kotlin-tests/4323>\
**Category:** Uncategorized\
**Created:** [August 24, 2017, 9:50am UTC](https://discuss.kotlinlang.org/t/why-org-testng-becomes-unresolvable-reference-in-kotlin-tests/4323 "2017-08-24T09:50:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![runjia1987](https://avatars.discourse-cdn.com/v4/letter/r/b5a626/32.png) [@runjia1987](https://discuss.kotlinlang.org/u/runjia1987)\
**Post date:** [August 24, 2017, 9:50am UTC](https://discuss.kotlinlang.org/t/why-org-testng-becomes-unresolvable-reference-in-kotlin-tests/4323/1 "2017-08-24T09:50:30Z")

</div>

env:  
kotlin: 1.1.4-2

These kotlin tests were ok in kotlin plugin 1.1.3-2, but when upgraded to 1.1.4, tests compile error with “org.testng” red.

---

<div class="post-metadata">

**Author:** ![albertgao](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/albertgao/32/3656_2.png) [@albertgao](https://discuss.kotlinlang.org/u/albertgao)\
**Post date:** [January 11, 2018, 5:02am UTC](https://discuss.kotlinlang.org/t/why-org-testng-becomes-unresolvable-reference-in-kotlin-tests/4323/2 "2018-01-11T05:02:37Z")

</div>

I got the same problem with latest version, 1.2.10, any solutions here?

---

<div class="post-metadata">

**Author:** ![albertgao](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/albertgao/32/3656_2.png) [@albertgao](https://discuss.kotlinlang.org/u/albertgao)\
**Post date:** [January 11, 2018, 5:10am UTC](https://discuss.kotlinlang.org/t/why-org-testng-becomes-unresolvable-reference-in-kotlin-tests/4323/3 "2018-01-11T05:10:47Z")

</div>

In case someone need it, the test case should reside in `/src/test/kotlin/`, then the `testng` will be recognized correctly.
