Unit-testing a console app (a text editor) : vimarsana.com

Unit-testing a console app (a text editor)


Unit-testing a console app (a text editor)
December 8, 2020 ·
About 15 minutes
·
Tags:
endbasic, featured, programming, rust
The most notable feature in EndBASIC 0.3 is its new full-screen console-based text editor. It took longer than I wanted to start developing this, in part because I was busy moving, and in part because I
dreaded the thought of having to unit test the text editor. (Yes, EndBASIC is a personal project and I develop it in my free time, but that doesn’t mean I don’t want it to be properly engineered!)
The text editor we will be unit-testing, in action.
In the end, I rolled up my sleeves, got to work, and achieved reasonable test coverage. In fact, the tests have already paid off by uncovering various bugs and inefficiencies, so the effort was well-spent. Developing these tests was non-trivial, though, so here is an overview on

Related Keywords

, Console Window Host , Text User Interface , பணியகம் ஜன்னல் தொகுப்பாளர் , உரை பயனர் இடைமுகம் ,

© 2025 Vimarsana