2

I'm looking for a project that:

1) Has avaiable sources including tests.

2) Was/is developed strictly using TDD.

3) Is written in Java and JUnit.

Any ideas?

Carl Manaster
  • 39,912
  • 17
  • 102
  • 155
Hagai Cibulski
  • 4,421
  • 3
  • 20
  • 23

4 Answers4

5

We wrote JBehave, the BDD scenario framework, using BDD at a unit level too. Very slightly different to TDD but provides many of the same values. (You'll find the tests at src/behaviour rather than src/test).

Ditto with Tyburn, a little Swing automation harness I wrote some time ago.

You might also look at Mockito.

I recommend these three because they've been written to support aspects of BDD itself, so the people who wrote them really, really care about this stuff.

Lunivore
  • 17,277
  • 4
  • 47
  • 92
2

JUnit comes to mind.

According to Erich Gamma in this interview, it was developed "in strict test-driven way." I've also heard interviews with both Gamma and Beck that repeated this statement.

Anon
  • 2,654
  • 16
  • 10
1

Hibernate and Spring are good open source examples that are heavily unit-tested.

EDIT, any of the apache commons projects as well...

hvgotcodes
  • 118,147
  • 33
  • 203
  • 236
0

"Good example of complex code using TDD" is a question on the Programmers SE site with answers that could be of interest to you.

Community
  • 1
  • 1
Xavier Nodet
  • 5,033
  • 2
  • 37
  • 48