Do the same as H4 but using a testing library and TDD as metology.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
This is a Kotlin project. In order to run the project, you need to have been already installed the following technologies:
- Make a clone of the repository.
- Locate in the project directory and run:
gradle build
To run the tests you only need to execute the following command:
gradle test
The author of this repository is Mikhael Santos Fernández (1088621).
TDD or Test Driven Development is a test methodology that emphasizes testing first and making the production code after. The workflow in this methodology consists of basically repeating the following two steps until there is no more code to write:
- Make a test of a function or class that is not already implemented.
- Write the implementation code.
gradle test
: It's to execute tests.gradle build
: Assembles and tests this project. Also create a serie of documents including tests inbuild/reports/tests/test/index.html
.gradle run
: Executes the project as an app. In order to choose the entry point of the app go tobuild.gradle.kts
and change the value ofapplication.mainClassName
.