The Unit Testing Slog (Patreon)
Content
A bit of a dull update to give today, but I've been busy writing unit tests and have made good progress through the LR2 code base. As of this moment I've written 89 test cases, which cover the major game classes like Person, MainCharacter, and Clothing. Next up I'm working through the smaller classes, but those should be faster to move through.
Writing these tests isn't particularly exciting, but is has already started to pay off. I've uncovered a number of bugs related to changing stats being incorrectly manipulated that would have been very hard to notice otherwise.
Once I am finished writing a solid suite of unit test I am going to move onto coding some integration tests for more complex LR2 systems. These integration tests will run through processes like designing a serum, entering the sex system, setting up an outfit to ensure there are no critical bugs in these areas that would block progress. The tests will require interaction with the Ren'py UI, so they won't be fully automated. They will be much faster than starting a new game and navigating around normally, and most importantly they will provide much more consistent testing before a release.
This update is shaping up to be entirely focused on testing and stability, but future development should be faster and more maintainable as a result!