News for hackers. Stuff that matters.
Re:Ask YC: Does anybody enjoy unit testing their code? by jamongkad on Thursday June 12, 2008 @01:40AM (#215693)
Hang on what green bar are you talking about? is that a feature of your IDE or something?
Re:Ask YC: Does anybody enjoy unit testing their code? by felipe on Thursday June 12, 2008 @01:52AM (#215703)
He is talking about an IDE feature that indicates that, well, your test passed!

http://www.eclipse.org/ajdt/EclipseCon2006/shots/junitTestsP...

The idea is that you write a few lines of code, test it (most likely you'll get red), and you keep fixing your code until you get green, and only then you proceed to the next task.

As far as I know, it started with jUnit on Eclipse, and then others implemented the concept on other languages / IDEs.

Re:Ask YC: Does anybody enjoy unit testing their code? by musiciangames on Thursday June 12, 2008 @04:09AM (#215756)
JUnit was derived from SUnit in Smalltalk.

In Smalltalk/Squeak, you can write the Unit tests and the code you're testing alongside each other, live, from the debugger. It certainly makes things easier being able to see the live objects, in deciding how they should behave. And by testing the objects in situ, you pretty much know your code is going to run as you expect.

Re:Ask YC: Does anybody enjoy unit testing their code? by jamongkad on Thursday June 12, 2008 @02:03AM (#215708)
Sweet....is there something similar for VIM?
Re:Ask YC: Does anybody enjoy unit testing their code? by mullr on Thursday June 12, 2008 @02:37AM (#215724)
In emacs they call this general capability 'flymake', I think. Perhaps that+google will get you what you want.
Re:Ask YC: Does anybody enjoy unit testing their code? by euccastro on Thursday June 12, 2008 @12:12PM (#216036)
It's a feature in some implementations: a progress bar advances while your tests execute, and finally turns red if any test fails, or green if all passed.

The term "green bar" is used, by extension, to refer to the notification that all tests passed, even in colorless console-based frameworks.