Automated testing for a visual (ncurses) app
As i work more on rbcurse, I am wondering how does one do automated testing for a software that is primarily visual. Whenever i make changes, I need to ensure that things still show correctly – the cursor position on screen, widget placement, text placement, text wrapping, highlighting and attributes of widget.
Currently, i have no way of knowing what’s broken.
One thought that comes is to take some kind of screen dump and compare screen dumps when testing.
Thoughts and pointers welcome.
# print between pattern *exclusive*
vim -e -s -c 'g/START/+1,/END/-1 p' -cq t.t.t