FXRuby + Unit Tests

  • Thread starter martinankerl at eml dot cc
  • Start date
M

martinankerl at eml dot cc

Hi everyone,

I am currently trying out test-driven development, and want to write a
small FXRuby application. Unfortunately, I have no idea how to write
unit tests when dealing with GUIs. Does anyone have samples/a good link
on how to do this?

regards,
Martin
 
A

Alexey Verkhovsky

I am currently trying out test-driven development, and want to write a
small FXRuby application.

2 cents worth of friendly advice: don't do that.

Rich, GUI classes are notoriously hard to unit-test, and at the same
time they are usually very easy to test manually. I think, majority of
"test-infested" programmers don't write unit tests for thick GUIs, for
this kind of reasons.

It is certainly a wrong kind of project to get a taste of test driven
development.

Best regards,
Alex
 
G

Gawnsoft

2 cents worth of friendly advice: don't do that.

Rich, GUI classes are notoriously hard to unit-test, and at the same
time they are usually very easy to test manually. I think, majority of
"test-infested" programmers don't write unit tests for thick GUIs, for
this kind of reasons.

It is certainly a wrong kind of project to get a taste of test driven
development.

Presumably one does TDD on the domain objects, and some sort of manual
testing on the interfaces?


--
Cheers,
Euan
Gawnsoft: http://www.gawnsoft.co.sr
Symbian/Epoc wiki: http://html.dnsalias.net:1122
Smalltalk links (harvested from comp.lang.smalltalk) http://html.dnsalias.net/gawnsoft/smalltalk
 
J

Jim Weirich

Gawnsoft said:
Presumably one does TDD on the domain objects, and some sort of manual
testing on the interfaces?

Yes. And we try to keep the GUI components as lightweight as possible.
Often they become just a matter of wiring this button to that domain
object method.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,148
Messages
2,570,834
Members
47,380
Latest member
AlinaBlevi

Latest Threads

Top