lNeed to write lots of client-side tests for
1)GUI
l WxPerl ->
Gtk+ under Solaris
l‘Use Wx’ was
failing because no X display
lProblems with
font sizing and window alignment
lWindows-specific
components, e.g. ActiveX Altova editor
lInstallation
lShortcuts,
registry Win32::OLE, unzipping archives to Windows Apps dir etc.
lSolutions
1)Use Xvfb
l$
alias runxvfb='Xvfb :10 -dev vfb screen 0 1152x900x8 > /dev/null
2>&1 &'
lLets
you check code compile and call many routines
lBut
how do you test UI rendered properly - interpreting the virtual screen bitmaps is too hard!
2)Sandboxing and
mocking
lMock required
Win32 functions
lMake
them do file I/O to a sandbox area
lTest::MockObject
- Perl extension for emulating troublesome interfaces
lTest::MockModule
- Override subroutines in a module for unit testing
l