tags:

views:

42

answers:

3

How is the JUnit Framework tested ?

How are the tests for their framework code created, considering that JUnit as a testing framework itself.

What technology are they using ? Their own testing framework ? A smaller more basic version of it ? Another framework ?

Can any knower please provide some details ?

+2  A: 

I would assume that they test using their own framework - why wouldn't they?

Looking at the source, they do.

SLaks
I assume the question is being asked as it's a bit chicken and egg, ie how do you start writing the tests if the framework doesn't exist yet.
Sam Holder
You write enough of the framework to make a simple test, then expand from there.
SLaks
+1  A: 

I believe that the framework is tested with itself. I'm sure I remember reading it in Kent Becks TDD book. Might be mistaken though.

Sam Holder
A: 

Who watches the watchmen?

I've read the authors of JUnit are test driven developers so in theory they would have written the unit tests before the wrote the JUnit classes themselves. I also remember that they wrote the first version for Smalltalk and JUnit was a port/upgrade of the Smalltalk suite.

Winter