After reading about Behaviour Driven Development , using jMock for a while, and since I am very fond of Ruby ’s core class API s, I am sure the assertations of JUnit need a major overhaul.
This are the goals I have for the redesign:
Make the code expressive and as readable as possbile. This means the code should look like plain english.
Usability is more important than flexibility.
Allow for much more poweful checks.
Usability is very important. The good thing is that it is easy to analyze how JUnit is used (download some test driven developed open source projects, grep for assertTrue, and there you have all the cases where JUnit’s asserts were not good enough )
I am playing around with a few ideas, and this is the API I am currently after:
Assertions Example Usage
public void testInt() {
int num = 4+1;
ensure(num).is(5);
ensure(num).either(4, 5, 6);
ensure(num).between(3, 1...
Content suppressed by ://URLFAN, for full article visit source
How To Make Firefox Over 40% FasterFrom: martin.ankerl.org
Post Date: 2006-08-16 11:37:11
If you use Linux on a Laptop, chances are high that you can dramatically improve the responsiveness of all your GUI applications. This tip will work for you if you:
Use a frequency scaling application like powernowd ( Ubuntu does this by default), cpudynd , or cpufreqd .
Have Kernel 2.6.9 or better.
In short, the trick is to disable powernowd and use the ondemand governor instead . How to do this in Ubuntu comes later, let me first show you what this change gets you...
more Behaviour Driven DevelopmentFrom: martin.ankerl.org
Post Date: 2006-08-02 00:55:25
Recently there has been quite a bit of fuss about Behaviour Driven Development . So, what is it all about? You should have a look at that presentation from Dave Astels , it is quite interesting:
Presentation: “Beyond Test Driven Development: Behaviour Driven Development”
You can also view and download the video here .
What this is about?
In short, Behaviour Driven Development can be summarized into just one sentence:
Behaviour Driven Development is exactly...
more