Back to Blog
Koans kotlin5/18/2023 Open the source file with the task and use the action Navigate -> Test to open the test file. You may navigate to the corresponding test automatically when you read the task. For each task, there is an associated unit test that checks your solution. Each task lives in its own function: from task0 to task41. Make sure you don’t cheat! How the tasks are organized The repository has two branches, master which contains the exercises for you to do and resolutions which contains the resolved exercises. gradlew test -tests ii_*22* # run test number 22 in part 2 gradlew test -tests ii_* # run tests in part 2 gradlew test -tests i_* # run tests in part 1 You can also build the project and run all tests in the terminal: If you want to solve koans in Android Studio, check the course in Android Studio with EduTools plugin installed. Note that this project isn't intended to be used in Android Studio. Here you can read how to run Gradle task from the Gradle toolbar in IntelliJ IDEA. To build the project and run the tests use test task on the Gradle tool window ( View | Tool Windows | Gradle).How to build and run tests Working with the project using Intellij IDEA: Each exercise is created as a failing unit test and your job is to make it pass. Kotlin Koans Workshop is a series of exercises to get you familiar with the Kotlin Syntax. For the last version of Koans, check the course in the EduTools plugin or online version.
0 Comments
Read More
Leave a Reply. |