Home » Developing U++ » U++ Developers corner » unit testing in U++
Re: unit testing in U++ [message #6082 is a reply to message #6060] |
Mon, 30 October 2006 02:20   |
exolon
Messages: 62 Registered: July 2006 Location: 53'21N 6'18W
|
Member |
|
|
luzr wrote on Sun, 29 October 2006 17:00 |
BTW, I still have my doubts about usefulness of unit testing for GUI classes... (how are you about to detect rare visual glitches? 
|
Yeah, that's a difficult case. In general, it's much easier to apply it to more logical stuff, although it's handy for test-driven design if you can mock certain calls.
About the packaging and stuff, I'm not sure. So far, I've been creating a separate project (ie: Palindrome and PalindromeTest) because I wasn't sure how to nicely separate test and tested code.. it's easier with java's package naming system and multiple source directories.
Also, running the tests means compiling all the tests into a separate executable and running that. I'm not sure how to manage that stuff properly yet...
Something like the junit test runners in Eclipse, for example, would be amazing (you select a test (or many) and hit alt-shift-X, t, and it runs the test methods, showing you a progress bar that turns red for errors or green for passes... quick and nice!).
|
|
|
Goto Forum:
Current Time: Wed Jun 25 21:28:12 CEST 2025
Total time taken to generate the page: 0.06504 seconds
|