This is a template project with some ready to use testing setup to quick start TDD kata sessions...
Origin of the word Kata explained.
Kata (Japanese: 形, or more traditionally, 型; lit. “form”) is a Japanese word describing detailed patterns of movements practiced either solo or in pairs.[1] Karate kata are executed as a specified series of a variety of moves, with stepping and turning, while attempting to maintain perfect form. Traditionally, kata are taught in stages. Previously learned kata are repeated to show better technique or power as a student acquires knowledge and experience. It is common for students testing to repeat every kata they have learned but at an improved level of quality. As an reference to this practices you can train yourself doing Test-Driven-Development in a Karate Katas fashion.This project includes working setups and examples for:
- Kotlin with:
- KotlinTest
- JUnit5
- Spek
- and assertion libraries like:
- Java with:
- Groovy with:
- Javascript including support for TypeScript, ES6 and ES5 with:
- JDK >= 8 installed
There are multiple ways to get the setup running on your mashine. You can either:
-
use the Template if you want to create a completely new repository
or
-
Fork the project
or
-
download it as Zip file.
./gradlew check
Pick a Kata you want to master and start TDD'ing ♻️
- gdub installed
- ℹ️ gdub (
gw
on the command line) invokes./gradlew
on projects where a gradle wrapper is configured, and falls back to use the gradle from the $PATH if a wrapper is not available.
- ℹ️ gdub (
☕️ install JDK11 via sdkman:
$ curl -s "https://get.sdkman.io" | bash
$ source "$HOME/.sdkman/bin/sdkman-init.sh"
$ sdk i java 11.0.4.hs-adpt
- open Intellij preferences (on mac
⌘,
) - goto
Languages & Frameworks
- choose
JavaScript
- select JavaScript language version:
ECMAScript 6
If you're having some nice Katas or further ideas regarding the template/test setup feel free to send pull requests