... For example, track how the number of tests evolve over time, see how long tests remain broken in average, how long it takes to fix them, the ratio of new...
20544
Nat Pryce
nat_pryce
Jun 10, 2008 6:47 am
... This sounds more like a process problem and logging won't do anything to help solve that. The first time you see a failure message should be when you are ...
20545
Kent Beck
kentlbeck
Jun 10, 2008 2:08 pm
This is what DevCreek (www.devcreek.com) does, and the results are often surprising. For example, we noticed that on Wednesdays the DevCreek team itself wrote...
20546
Robert Wenner
robertwenner
Jun 10, 2008 3:38 pm
... That's true for logs like server logs that collect data from "the outside". It doesn't make any sense to me for test logs, where no "outside" influences...
20547
Phil Surette
PhilSurette
Jun 10, 2008 3:40 pm
I agree that adding this logging will not make junit into a more elegant framework. Logging is never elegant and adding logging for assertions will make the...
20548
Phil Surette
PhilSurette
Jun 10, 2008 3:40 pm
Yes, this is what I was trying to get at. Think of it as allowing another runtime view onto your test cases. The test runner provides one, fairly terse, view: ...
20549
Phil Surette
PhilSurette
Jun 10, 2008 3:40 pm
The log is not important. Feel free to skip it. If, however, you find yourself a little mystified about your test case's behaviour, you have the option of...
20550
Phil Surette
PhilSurette
Jun 10, 2008 3:40 pm
I take your general point that simpler tests are better. But I've seen lots of complex tests and admit that I am not always strong enough myself to keep them...
20551
Mark Levison
marklevison
Jun 10, 2008 3:41 pm
... First up I work with Phil and we've had this discussion a few times in the past. For the most part I don't think I would use this feature a whole ton but...
20552
Mike Hill
uly562000
Jun 10, 2008 3:41 pm
... So. Side topic, and favorite horse-floggee of mine: did the metric do anything for us that simply knowing the team well wouldn't have already done? I'm...
20553
mfeathers@...
mfeathers256
Jun 10, 2008 4:40 pm
I think that metrics are fine when people just treat them as a source of information. The place where people mess up is when they reflexively assume that...
20554
nat_pryce
Jun 10, 2008 4:41 pm
... Jester (http://jester.sourceforge.net) is pretty useful for getting a handle on how good a set of unknown tests are and where problems lie. However, the...
20555
Kent Beck
kentlbeck
Jun 10, 2008 6:14 pm
All, We are nearing the release of JUnit 4.5. We have a question for all you custom runner writers out there. We have substantially restructured the internals...
20556
Nat Pryce
nat_pryce
Jun 10, 2008 6:35 pm
Is it possible for 4.5 to support both the old and the new runners for one release? --Nat...
20557
Kent Beck
kentlbeck
Jun 10, 2008 7:23 pm
I had no idea the weekly meeting was cost 20% of our capacity. What I said was, "The weekly status meeting isn't that big a deal. You could cut your prep time...
20558
Kent Beck
kentlbeck
Jun 10, 2008 7:23 pm
Nat, Yes, it is. That's the question: should we leave JUnit4TestRunner basically alone and change the name of the new one to BlockTestRunner (all the various ...
20559
Johannes Link
jlinkyh
Jun 10, 2008 7:55 pm
I vote for keeping it in for one more version. It relieves me from porting ClasspathSuite at once and from keeping two versions around till 4.5 will be the...
20560
Phil Quitslund
p_quit
Jun 10, 2008 8:01 pm
Hey all, Keeping the current version for another release would be really handy for us if at all possible. Thanks for asking! -phil ... retained...
20561
Ilja Preuss
ipreussde
Jun 10, 2008 9:13 pm
... I don't think that's what Joe said. I understood him to say that it would have prevented him from being nudged to write *better* tests. Having that easy...
20562
Nat Pryce
nat_pryce
Jun 10, 2008 10:02 pm
I vote to keep the old one for one more version, and deprecate it. That will give us time to port jMock, and let us keep supporting projects while they upgrade...
20563
toalexsmail
Jun 10, 2008 10:14 pm
... say I ... I have read carefully all the posts so far and I tend to agree with Robert. I am wonder whether I miss something important too. I want to be...
20564
Mark Levison
marklevison
Jun 11, 2008 3:05 am
... A possible solution: 1) Create a logging interface, with methods like TestStart, AssertXXX, TestFinish, etc. 2) Create a null instance that is used by...
20565
toalexsmail
Jun 11, 2008 8:14 pm
I like Kent's answer. I want to highlights some aspect's of it. To be specific, let suppose that there is 3 different teams with team leader in each one and ...
20566
mfeathers@...
mfeathers256
Jun 11, 2008 8:55 pm
The assumption underlying all of this is that capacity is only a function of time. Michael...
20567
Nicole
nall4
Jun 12, 2008 3:10 am
Hi, Say I need to test the following two methods: public UserObj getUser(String username) {...} public UserObj getUser(int userID) {...} The specs say that to...
20568
Brendan Hills
tokyo_b1
Jun 12, 2008 3:40 am
You can actually use any method name you like: the "test<methodName>" format is just a convention, but a very useful one since it allows all your tests be...
20569
Nat Pryce
nat_pryce
Jun 12, 2008 5:52 am
... A test method in your test-case needs to start with the word "test" but does not need to be named after a method in your test class. You can call your...
20570
aditya_mangla
Jun 12, 2008 10:38 pm
Hello friends, I have the following application set up: 1. A distributed system of servers and special servers and common user nodes. 2. Each server is...
20571
Bradley, Todd
todd404
Jun 13, 2008 3:51 pm
Sounds to me like you're looking for a system testing framework. Obviously, JUnit by itself won't solve the problem. I don't know of any system test tools...