Skip to content

Tests and Continuous Integrations

Test-driven development is a software development practice advocated in XP and consists of the practice of test-driven development and in TCLDL we inherit this from DDD (domain-driven desing).

Using TDD we program the tests in the extension codes .Spec.ts in order to know the type of result we would like to obtain, with that done the extension code .Ts is done.

As expected from TDD, the project code does unit tests to check every minor part of the system that is decoupled, evaluating the results of classes and methods.

Jest

The technology used for Js and Ts tests is Jest to mitigate redundancies and couplings in a backend with node and express, which are some of our technologies. The Jest tool was choosen because it`s fast safe and easy mocking.

Commitlint

Based on a commits convention, it is used to validate messages with relatively little red tape. This is useful for standardizing team commits.

Husky hook

Husky supports Commitlint and is being used to lint commit messages.

GitHub Actions

GitHub Actions is the tool of choice for automating and executing workflows and software development, including CI / CD.

The project has a Node.js base and database and test integration is managed by the GitHub Actions configuration files.

Code Quality && Coverage 100%

This is used as metric to put in numbers or letters how good the code is being constructered.

Code Climate

Codeclimate is a static code quality analysis tool. This tool scans the code for duplication problems, code smells and other miscellaneous problems, thus raising the quality of the code. This is useful for avoid mistakes that makes code clean.


References



Document Versioning

Date Author(s) Description Version
10/25/2020 Vitor Meireles Document creation 0.1
10/25/2020 Vitor Meireles Adds concepts 1.0
10/26/2020 Vitor Meireles Adds images 1.1
10/26/2020 Vitor Meireles Adds reference 1.2
10/26/2020 Vitor Meireles Adds code climate 1.3
10/26/2020 Vitor Meireles Makes documentation cleaner 1.4