In node.js and jest, the best practice is to put test file side by side with source files, like
|- /main
| |- index.js
| |- index.test.js
and then just run jest. How can we do the same in Kotlin and gradle? I 'd like to have hello.kt and something like hello.test.kt, and somehow run kotlin command line tool to run test.
I have read kotlin-example but they have files in main and test folders.
P/S: If anyone knows how to also do the same in Swift, that would be great.