Skip to search.
junit · JUnit, the Java unit testing framework written by Kent Beck and Erich Gamma.

Group Information

  • Members: 7754
  • Category: Java
  • Founded: Nov 6, 2000
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

  Messages Help
Advanced
Are you really using JUnit during your development?   Message List  
Reply Message #17266 of 23906 |

I've written JUnit cases for over 1 month.

I have to say it's fun to do the implement coding. But it's suffering to
write JUnit cases. Because:
1. I need to know the correct result from the other way around and sometimes
it's hard to find another way.
2. Database and JSP pages are difficult to JUnit test.
3. Mock objects brings more than double efforts during the whole develop
process.
4. Exception situation is not so easy to make as JUnit claims.

3 friends in 3 different companies (small size and middle size company)
complain JUnit as:
1. They planned JUnit testing firstly and they cannot keep it going. TIME
reason?
2. It consumes a lot of time but hard to find big problems. JUnit does find
small problems as we expected.
3. JUnit testing is not effcient enough.
4. Best JUnit tester is the senior software developer. But senior guys hate
to write test cases.
5. For small company, it's really hard to choose between JUnit+develop and
develop+functional testing.

Is there anyone who is successful in deploying JUnit during develop as:
JUnit + code + JUnit + code + System Testing?
--
View this message in context:
http://www.nabble.com/Are-you-really-using-JUnit-during-your-development--tf2039\
307.html#a5612073

Sent from the JUnit - User forum at Nabble.com.




Wed Aug 2, 2006 11:36 am

raejean99
Offline Offline
Send Email Send Email

Message #17266 of 23906 |
Expand Messages Author Sort by Date

I've written JUnit cases for over 1 month. I have to say it's fun to do the implement coding. But it's suffering to write JUnit cases. Because: 1. I need to...
Jean
raejean99 Offline Send Email
Aug 2, 2006
12:21 pm

... Yes. Every day. You're right - some things are easier to unit test then others. I'm not perfect, and I'm still learning. But, I'm doing it (and have...
Carl Hume
carl_hume Offline Send Email
Aug 2, 2006
12:53 pm

... Like Carl for over six years using JUnit/NUnit (for .NET) work. Its hard work at first but gets easier with time. J.B. Rainsberger's book Junit recipes ( ...
Mark Levison
marklevison Offline Send Email
Aug 2, 2006
3:11 pm

That's got me beat. I've only been using it regularly for four years. [Hangs head in shame!] As a technical lead and now a mentor, I don't cut code every day ...
Simon Chappell
spchappell Offline Send Email
Aug 2, 2006
3:19 pm

... Don't feel bad, your situation is pretty common in my experience. The important thing is to realize that tests are important and always do your best to...
Cédric Beust 
cbeust Offline Send Email
Aug 2, 2006
4:43 pm

... I'd have to admit that I find coding the /tests/ quite interesting and challenging in their own right. Here are just some of the things that testing has...
jason r tibbetts
tibbettj_at_... Offline Send Email
Aug 2, 2006
5:21 pm

... I forgot to say something like this, and it's important: we all have felt the same thing. ... Indeed. It takes time, but the investment is worth it: for...
J. B. Rainsberger
nails762 Offline Send Email
Aug 11, 2006
2:36 am

... It's tempting to start a new thread asking if there is anyone NOT using junit during development ;-) ... but that probably wouldn't help you much. If there...
Kevin Lawrence
kevinwilliam... Offline Send Email
Aug 2, 2006
4:57 pm

... Not everybody uses JUnit, you know... Three or four times around this loop and you will probably also wonder ... The problem is usually more along the...
Cédric Beust 
cbeust Offline Send Email
Aug 2, 2006
5:11 pm

... I know. I was assuming that the OP was using 'junit' to mean 'an automated unit test framework'. I could have made that clearer. Kevin...
Kevin Lawrence
kevinwilliam... Offline Send Email
Aug 2, 2006
7:11 pm

... "It's tempting to start a new thread asking if there is anyone NOT /doing programmer testing/ while programming." ... Which reality depicted in which books...
J. B. Rainsberger
nails762 Offline Send Email
Aug 11, 2006
2:36 am

On Aug 2, 2006, at 1:16 PM, junit@yahoogroups.com wrote: 4. Best JUnit tester is the senior software developer. But senior guys hate to write test cases. ...
Robert Martin
rmartinoma Offline Send Email
Aug 2, 2006
7:43 pm

Hi Rob, ... You seem to imply that there are only two kinds of code: - Code that is tested and works - Code that is not tested and doesn't work There is...
Cédric Beust 
cbeust Offline Send Email
Aug 2, 2006
8:02 pm

... How do you know? ;-) Michael Feathers www.objectmentor.com...
Michael Feathers
mfeathers256 Offline Send Email
Aug 3, 2006
3:17 am

... Because a lot of software companies are still in business and I know for a fact they don't do a lot of testing :-) -- Cédric http://testng.org [Non-text...
Cédric Beust â...
cbeust Offline Send Email
Aug 3, 2006
3:23 am

... This thread has, in my opinion, already veered away from the original poster's question, which seemed to be more about whether it was valuable to use JUnit...
David Saff
dsaff Offline Send Email
Aug 3, 2006
4:04 am

Hi David, and thanks for stepping in. ... I'm not sure we moved away from the original topic. The original poster was basically asking "I don't like writing...
Cédric Beust 
cbeust Offline Send Email
Aug 3, 2006
4:21 am

... Hi Cédric, 1) I would change this statement to "most software is not automatically tested with tools such as TestNG, JUnit or FIT or similar". Then I...
Joakim Ohlrogge
j0hlrogge Offline Send Email
Aug 3, 2006
8:19 am

... Actually, I would go farther out there. There's three kinds of software out there: 1) Software good enough that some company finally decides to...
David Saff
dsaff Offline Send Email
Aug 3, 2006
12:35 pm

On Aug 3, 2006, at 9:54 AM, "Cédric Beust ♔ " cbeust@... ... There was a period of time when very few surgeons washed their hands before operating....
Robert Martin
rmartinoma Offline Send Email
Aug 3, 2006
11:55 pm

... I didn't even think about #3. Sadly that also happens... TDD can be a part of the answer here but I bet a whole lot more is wrong in those projectcs. ... ...
Joakim Ohlrogge
j0hlrogge Offline Send Email
Aug 4, 2006
10:56 am

... I hope no one would ever hear me saying that they were. I try to spend less time worrying about whether I fit global definitions of "bad" or "worthless",...
David Saff
dsaff Offline Send Email
Aug 3, 2006
12:43 pm

... I think you wanted to say "1) not unit-tested"... -- -- Yagiz Erkan -- http://blog.decaresystems.ie...
Yagiz Erkan
yagizerkan@... Send Email
Aug 3, 2006
2:26 pm

... Mine too. I don't do TDD 100%, but it always works better when I do. Take care, Ilja...
Ilja Preuss
ipreussde Offline Send Email
Aug 4, 2006
10:16 pm

Maybe I am mis-reading the sentence, but it seems hard to believe that there are a lot of companies in business that don’t do a lot of testing. My experience...
Andreas Guther
andreasguther Offline Send Email
Aug 3, 2006
11:07 pm

... And their products contain an incredible amount of bugs. They are only still in business because their customers are used to dealing with bugs. Once they...
Ilja Preuss
ipreussde Offline Send Email
Aug 4, 2006
9:56 pm

... Now /your/ implication is that software companies need to ship working software to stay in business. One day, that might be true, but for now, it certainly...
J. B. Rainsberger
nails762 Offline Send Email
Aug 11, 2006
2:36 am

Hi Iam trying to execute simple test case from eclipse3.1 IDE using ant build.xml. I have written for that <!-- Setup Junit framework --> <target name="JUNIT"...
Ravi k
c_itsreddy Offline Send Email
Aug 3, 2006
10:32 am

Hi there, you snipped out the path object named "classpath", so we can't see what you included there. But if the tests compile successfully, I assume you did...
Anna Skawinska
elfeczka Offline Send Email
Aug 3, 2006
11:41 am
First  | < Prev  |  Last 
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help