Hi, Why do I get this error <https://pl.kotl.in/n...
# getting-started
t
Hi, Why do I get this error https://pl.kotl.in/n8eiamb4K ? I'm trying to use testing. Probably there's no already built-in package named atomictest, right?
f
Only a few libraries are available in the playground: https://github.com/JetBrains/kotlin-compiler-server/blob/3b1f86640f87bb4e17ce3a8cb6434201d42a4aa7/dependencies/build.gradle.kts#L103
atomictest
package belongs to none of them, thus the error.
t
To use them, say junit, should I use import libs.junit? Didn't work.
f
You can refer JUnit4 javadoc to find appropriate package names: https://junit.org/junit4/javadoc/latest/
k
By the way, when you see
libs.junit
(for example), that refers to the definition of
libs.junit
in the file
.../gradle/libs.versions.toml
. There, you will find the dependency definition and search for its documentation.