flog Test.new
summary
Adds a real test suite to flog rather than toy examples: forks to flame on GitHub, wraps command script with RSpec and Mocha, extracts and unit-tests pure functions, adds integration fixtures, and removes globals by switching to OptionParser. Coverage rises from ~74% to ~96%, with 126 incremental commits, some breaking then fixed. Introduces characterization tests to capture current behavior and builds flog plus blaming hooks (collect_blame) while exploring parse tree line mapping; overall refactor works and supports further features.
AI-written summary · about
chapters (9)
- 0:00Testing legacy code
- 4:42Flog and characterization testing
- 16:22Test driving vs refactoring
- 21:41Adding tests to flog
- 36:32Characterization tests
- 41:26Handling recursion
- 52:46Refactoring scoring
- 57:01Cleaning up
- 1:00:15Blame feature and conclusion








