From: "Adrian Howard" ... Ruby's Webrick makes that absurdly simple. You could even go Webrick -> CGI -> your application in your language. My MiniRubyWiki...
... Tip: Pass a testing object into the thread, and let that throw a semaphore. Then block on the semaphore here. However, in general, Dialogs often block as a...
I would create a modeless window given a choice. But I don't have a choice. Perhaps you are suggesting that I use a modeless window for testing, even if the...
... That's just a specification. Just match it, and ensure the code behaves like your customers need. ... Yes. Like I said, for windows, a modal window is...
Kelly, A modeless window and a modal window are the same thing. the only difference is calling Show() or ShowDialog(). In your tests call Show() and in the...
... The next only difference, if I recall my Win32 SDK correctly, is one kind must end with EndDialog() and the other ends with something else. So then you...
... But in .NET we don't deal directly with the Win32 SDK, so we don't deal with EndDialog(). We do, however, deal with Close() and that has to be called...
Ok, I'll give that a try. Sounds easier for sure. When you do something different at test time and run time, how do you accomplish that? With injection, with...
... Then, XPath is a sledge-hammer to TDD raw HTML. (Note - sometimes you just write the HTML, and sometimes you TDD at another level. When you TDD at the HTML...
Hi everyone, Reading the TFUI list I've found only this reveal method in Java: http://tech.groups.yahoo.com/group/TestFirstUserInterfaces/message/564 *The*...
... If I can avoid my usual plagues and disasters for just a couple more weeks now, I will _finally_ be publishing a chapter of /TFUI/. (Woo-hoo! and...
... Another followup. The last time I did this project (I cheated and used TkCanvas, instead of our endlessly convoluted Ajax landscape), I used GraphViz for...
... To answer the OP, those are *Units. Rails is a complete application; an example of a project. The difference with *Units in general is Rails's test...
... Your tests which run a long way from the tested code are insufficiently fuzzy? ... Can you get them to fail within 5 seconds of hitting the One Test ...
If the test runs quickly, returns true results (no tail chasing from false false negatives, no misdirection through false positives), then keep it. It's...
... False negatives are okay if they are instant. You could learn from your most recent edit and capture the issue with a test closer to the source. And/or you...
<shameless plug> I just wanted to let people know that InfoQ has just released the book "Patterns of Agile Practice Adoption" and it is downloadable in ...
Please not the link above does not include a '.' It should be http://www.infoq.com/minibooks/agile-patterns (oh, and by the way it is printable also!)...
Railsers et al: Anyone developing Ajax applications needs to read my new Short Cut, at O'Reilly: http://www.oreilly.com/catalog/9780596510657/ "Test Driven...
I know Java isn't Phlip's favorite language, but I don't think he'll mind me posting the first message of the month on this topic. There are three (at least)...
... MFC has major architectural flaws that resist clean testing. One good policy is to use "in vivo" testing, per the book /Working Effictively with Legacy ...
... Modulo the legacy implications. Tip: Find the lowest-level functions you can, maybe things as simple as a glorified strcat(), and write unit tests on them....
... +1 Windows has various subtle bugs regarding DoModal(). One should treat it as a convenience function for lazy programming. Make the dialog modeless, and ...
... Absolutely. One of my helper functions is called windowWouldBeVisible() --- I use it to verify that controls are correctly hidden or shown as appropriate, ...
... I TDD Ajax using Ruby on Rails using these techniques: http://www.oreilly.com/catalog/9780596510657/ The goal is all unit tests work with the "mock the...
... Treat the GUI as just another library, and _start_ with fearless unit tests on it. If by Win32 you mean its widgets layer - buttons, edit fields, and other...