Gradle is such an interesting build tool that it prompted me to look at Spock and JUnit -- which I've never done before. What is the basic workflow with TDD?
My approach has been to do frequent builds, slightly less frequent clean builds, and to run the application as much as possible. Certainly, there are entire books on TDD, but my most basic question is about the workflow.
Instead of working in
src/main/java, most of the coding is done in the
test directory? This, to me, intuitively, seems wrong. With version control, why have the duplicate directory structure? It can only lead to discrepancies between
src/test which must be resolved manually.
Why not just work in one branch, then, when complete, create a branch without the tests?
What do you do when you want to actually run the application?