Unit testing
Is your feature request related to a problem? Please describe.
As @ItaloYeltsin said, unit testing is an essential step on the development process. It provides code quality and avoids bug regression. He created a structure for JUnit tests with #151 and now we have to start populating it with tests.
Describe the solution you'd like
As we have started working to release our next version this is a great time to kick start this work. Here is a list of pull requests that could provide good candidates for tests to be implemented:
- #97
- #102
- #108
- #114 and #122
- #130
- #134
- #148 (still open when this issue was open)
- #152
- #154
In the future, it would be nice if pull requests acceptance criteria includes a unitary test for the issue it hopes to solve, helping to avoid bug regression. 🤓
Devices
Add a list of the platforms you want this feature to be implemented and on which version of TotalCross.
- TotalCross Version 7
Hello @nmarquesin, this is indeed a critical aspect to avoid regressions and easy the teamwork. I am glad it is being worked on for the next release.
As @teras seems to be the one who will be working on this, it'd be good if he could describe at a high level how he intends to structure the TotalCross testing framework so the testing writing can be done with less friction.
@teras, could you share your thoghts on this?