TDD (Test-Driven Development) practice taken from https://osherove.com/. Personal journal and record only.
Practice Scenario: TDD Kata 1 - String Calculator — Roy Osherove
Progress can be found here: cuppyzh/TDD-Kata-Exercise at feature/tdd-kata-1 (github.com)
Time Taken: 59m25s
Summary Step 1--6 quite simple and easy, it was done under 20 minute, the issue occurred when more complex substring required during the remain step.
On the middle of Step 7, I just realized that some of the requirement is missing, so need to fix something from Step 6. Also, the code was changed from using Substring to Regex to simplify the code.
Room to Improve
- Application of Substring sometimes confusing me
- Need to learn to be Native on Regex
Practice Scenario: TDD Kata 2 - String Calculator — Roy Osherove
Progress can be found here: cuppyzh/TDD-Kata-Exercise at feature/tdd-kata-2 (github.com)
Time Taken: 29m09s
Summary Applying ILogger feature that need to works when the program is run, but also not block the unit test. Since I had used the Moq before, so the steps is not difficult. The issue is when applying the ILogger it self. Since I'm using Console Application, so I need to find and install the dependencies by my self.
Room to Improve
- Still doing this on Visual Studio, need to be fluent in Visual Code to more versatile language/framework
Practice Scenario: TDD Kata 3 - String Calculator — Roy Osherove
Progress can be found here: cuppyzh/TDD-Kata-Exercise at feature/tdd-kata-3 (github.com)
Time Taken: 36m22s
Summary I took some time to figure out what I need to do, this scenario feels lack of guidance about what need to do.
Room to Improve
- Read the specification slowly better comprehensive