Forums Register Login

Anybody using developing their project and adding UNIT Tests?

+Pie Number of slices to send: Send
I was curious, if anybody was creating UNIT tests for their application as they were developing it (i.e. JUnit TestCases)?
If so, did you find it beneficial for your SCJD project?
+Pie Number of slices to send: Send
I did create unit tests for my key classes and was very glad I did as it allowed me to improve my design and coding by refactoring it over and over again with confidence that I hadn't broken anything in the process.
Speaking about JUnit:
"Never in the field of software development was so much owed by so many to so few lines of code" - Martin Fowler
This is so true.
+Pie Number of slices to send: Send
Mark,
I too am using JUnit and a couple of custom classes to do unit tests. It's really good for peace of mind. Like Ken said, you can change something, even radically, then retest it. If it still works you're all good.
One question for Ken: Did you include your test classes in your uploaded project? I'm not intending to do this, does that sound ok?
Regards,
jb
+Pie Number of slices to send: Send
i didnt use any UNIT test, i did all the testing by myself as a user.
+Pie Number of slices to send: Send
I have a custom class to do the testing of my Data class methods. JUnit would probably have been better, but the custom class works fine for me. I also do manual user testing of the application in both network and standalone modes.
The custom class test is a lifesaver though.
TJ
+Pie Number of slices to send: Send
Billy -
Did you do any type of multithreaded test as a unit test?
Or just the manual testing you mention above?
I know you passed recently, so I was just wondering.
TJ
+Pie Number of slices to send: Send
Jay,
I did not submit my test code.
+Pie Number of slices to send: Send
Ken -
Did you do a multithreaded unit test to pound the data manipulation methods?
Just curious - I have a question posted out here at this url and it's not getting any response.
I would love to hear your 2 cents worth.
TJ
+Pie Number of slices to send: Send
TJ,
I did write a multithreading test but it wasn't a JUnit test.
[ January 22, 2004: Message edited by: Ken Krebs ]
+Pie Number of slices to send: Send
I'm using junit and junitperf. I've copied the junitperf loadTest from some other thread in this forum.
My unit testcase which can run on it's own (AND is succesfull in both tests)

The performance tests which starts 50 clients at the same time and does a 1 time only setup/teardown. WithLock->succes | WithoutLock->fails (as expected)

[ January 22, 2004: Message edited by: Roel De Meester ]
+Pie Number of slices to send: Send
 

Originally posted by Jay Bromley:
Mark,
I too am using JUnit and a couple of custom classes to do unit tests. It's really good for peace of mind. Like Ken said, you can change something, even radically, then retest it. If it still works you're all good.
One question for Ken: Did you include your test classes in your uploaded project? I'm not intending to do this, does that sound ok?
Regards,
jb


Jay do no include Testing in your code I've been reading about JUnit and "JUnit In Action" says that you should just use JUnit testing for your internal testing needs, kind of like to simulate the actual customer of your product.
Hope this helps.
+Pie Number of slices to send: Send
Ken and Dev,
THanks for confirming my suspicions about not submitting test code. I didn't want to do so, because my test code is not as "pretty" as the Sun Coding Conventions might want them to be, but I wasn't sure if the grader might be interested in them.
Thanks and regards,
jb
You save more money with a clothesline than dozens of light bulb purchases. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1358 times.
Similar Threads
Static members and testability
Project Structure
What kind of methods and classes can i test with JUnit
passed....! the big "thank you Andrew Monkhouse" thread
TDD: Feasible to handle?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 14:17:38.