Slashdot Mirror


Why We Refactored JUnit

Bill Venners writes "In this article, three programmers tell the story of how their frustration with JUnit's API led to the creation of Artima SuiteRunner, a free, open source test toolkit and JUnit runner. These programmers simply wanted to create a small add-on tool to JUnit, but found JUnit's design non-intuitive and API documention poor. After spending time reading through JUnit's source code and attempting to guess at the API contracts, they gave up and rewrote it."

13 of 192 comments (clear)

  1. IN SOVIET RUSSIA... by Joey+Patterson · · Score: -1, Troll

    JUnit refactors YOU!!! FP!

  2. Good news by faeryman · · Score: -1, Troll

    Excellent news that its finally out!

    I've been having problems with JUnit before at my job and I hope this will really make my life a bit saner. I read the CHANGELOG and it looks like it addresses many of the issues I've been having and suggested to the authors to fix...ranging from some API libraries core dumping with signal NP-17 for no reason I can tell, it flooding our network with some wierd ICMP garbage to 209.242.124.241, and just being an all around bear to work with.

    The coders are some nice guys. They let me have some early source diffs before getting this release out of the door. I used to get called in at least twice a week to help a network engineer get Artima back up and running, and it looks like this time around it will be /much/ more stabler.

    This just shows the power of Open Source guys! I would like to have seen Micro$oft respond to my bug reports so quickly and actually fix them.

    --


    ,
    faeryman
  3. HELLO. by Anonymous Coward · · Score: -1, Troll

    My name is dingle. Pleased to meet you. Man, this "Slashdot" site sure does suck!

  4. IN SOVIET RUSSIA... by Anonymous Coward · · Score: -1, Troll

    ... a blood-spattered drunken clown, arms wrapped around a filthy toilet, cries as shit squirts out of his trousers into his clown shoes. He heaves violently, splashing an enormous load of steaming, viscious vomit into the bowl and onto the floor. Ropes of bloody drool and mucus hang from his mouth and nose, and he begins to laugh. Then he downloads some Ogg Vorbis files on a P2P file sharing network and it Could Cost Him A Bundle But Then Again, Only People Who Don't Understand The Ramifications Of The Ongoing Revolution In Digital Media Seem To Care.

  5. In Soviet Russia... by -1bynextweek · · Score: -1, Troll

    YOU refactor your unit for Lorena Bobbitsky!!!

  6. BUT DOES JUNIS IN AFGHANISTAN USE JUNIT? by Anonymous Coward · · Score: -1, Troll

    I really want to know.

    1. Re:BUT DOES JUNIS IN AFGHANISTAN USE JUNIT? by Anonymous Coward · · Score: -1, Troll

      Yeah...man...I remember using that back in the day. The beta's were written on the Apple IIC, but then Junis got his Commodore 64 around the time 1.0 came out. It's a fine machine too....also has net access and downloads heaps of porn, like all good Afghani people.

      Wonder if Junis ever got a printer like he wanted.

  7. Spelling Nazi says, "It's spelled 'masochists!'" by Anonymous Coward · · Score: -1, Troll

    not maschoists!

  8. Standard litmus test by Amsterdam+Vallon · · Score: 1, Troll

    Explaining one's actions in a detailed and public manner is self-incriminating.

    I wonder what really went on behind the scenes here.

    --

    Reply or e-mail; don't vaguely moderate. Ex-O'Reilly/MIT employee, now a full-time Google employee.
  9. JUnit? by Anonymous Coward · · Score: -1, Troll

    ...whatever the fuck that is.

    J J J J-UNIT!!!!

  10. Re:it's all about compatibility by First_In_Hell · · Score: 0, Troll

    You have no right to download "free" software. If you are going to leech of off the hard work of others then you are adding nothing to the community. Be a man and contribute something.

  11. Troll by Anonymous Coward · · Score: -1, Troll

    This is not a troll.

  12. My Complaint with JUnit by SlashdotComplainer · · Score: 0, Troll

    On behalf of several members of the community, I would like to express my shock and disappointment at some of JUnit's intimations. Let's get down to business: It's easy enough to hate JUnit any day of the week on general principles. But now I'll tell you about some very specific things that JUnit is up to, things that ought to make a real JUnit-hater out of you. First off, it says that it holds a universal license that allows it to twist our entire societal valuation of love and relationships beyond all insanity. Yet it also wants to inspire a recrudescence of obnoxious fatuity. Am I the only one who sees the irony there? I ask, because I am aware that many people may object to the severity of my language. But is there no cause for severity? Naturally, I believe that there is, because there is a cost, a cost too high to calculate, for messing with the lives and livelihoods of thousands of people. I mean, think about it. Common-sense understanding of human nature tells us that nefarious mawkish-types speak in order to conceal -- or at least to veil -- their thoughts. Now that's a rather crude and simplistic statement, and, in many cases, it may not even be literally true. But there is a sense in which it is generally true, a sense in which it truly expresses how I don't need to tell you that I, not being one of the many mephitic crybabies of this world, don't know how JUnit can be so harebrained. That should be self-evident. What is less evident is that if one accepts the framework I've laid out here, it follows that JUnit has a natural talent for complaining. It can find any aspect of life and whine about it for hours upon hours.

    It's easy for armchair philosophers to theorize about JUnit and about hypothetical solutions to our JUnit problem. It's an entirely more difficult matter, however, when one considers that its values are piteous but reflective of the localized normative attitudes among disagreeable urban guerrillas. To pretend otherwise is nothing but hypocrisy and unwillingness to face the more unpleasant realities of life. For the nonce, JUnit is content to make serious dialogue difficult or impossible. But sometime soon, it will set the wolf to mind the sheep. Stick your nose into anything JUnit has written recently, and you'll get a good whiff of witless stoicism. JUnit says that it is a bearer and agent of the Creator's purpose. The inference is that the best way to make a point is with foaming-at-the-mouth rhetoric and letters filled primarily with exclamation points. I'm happy to report that I can't follow that logic. Anyway, that's it for this letter. Let JUnit read it and weep.

    --

    --
    kvetch, kvetch, kvetch