The Accidental Rubyist

invalid byte sequence in UTF-8

Automated testing for a visual (ncurses) app

leave a comment »

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


— commandlinefu.com

Advertisements

Written by totalrecall

December 31, 2009 at 6:02 pm

Posted in ncurses

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: