Posts Tagged Testing

FEST-Assert 1.3: Fluent Interface for Assertions

We are proud to announce that FEST-Assert 1.3 is out! FEST-Assert is an “assertThat” library that provides a fluent interface for writing assertions. Its main goal is to improve test code readability and make maintenance of tests easier. Example: int removed = employees.removeFired(); assertThat(removed).isZero();   List newEmployees = employees.hired(TODAY); assertThat(newEmployees).hasSize(6) .contains(frodo, sam);   String[] newHires [...]

, , , ,

3 Comments

When 100% coverage gives us a false sense of security

I use code coverage tools on a regular basis only to ensure that the most complex areas of the code base are properly tested. I tend to bravely fight the temptation to get excited by this metric and waste valuable time adding meaningless tests (e.g. getters and setters) just to keep the numbers going up. [...]

, ,

16 Comments

Feedback welcome: session proposals for Agile 2010

I just finished writing two proposals for Agile 2010. As usual, I asked my friends for feedback (through Twitter.) Since the conference’s site requires registration and some of my friends don’t have an account, I’m blogging about my proposals, hoping to get some feedback (thanks Jonathan for the suggestion!) As a side (and funny) note, [...]

, , , , , ,

No Comments

FEST-Reflect 1.2: Fluent Interface for Java Reflection

We are proud to announce that FEST-Reflect 1.2 is out! FEST-Reflect is a Java library that provides a fluent interface that simplifies the usage of Java Reflection and JavaBeans Introspection, resulting in improved readability and type safety. It supports class loading, access to static inner classes constructors, methods and fields, and more! Example: Person person [...]

, , , ,

2 Comments

FEST-Assert 1.2: Fluent Interface for Assertions

We are proud to announce that FEST-Assert 1.2 is out! FEST-Assert is an “assertThat” library that provides a fluent interface for writing assertions. Its main goal is to improve test code readability and make maintenance of tests easier. Example: int removed = employees.removeFired(); assertThat(removed).isZero();   List newEmployees = employees.hired(TODAY); assertThat(newEmployees).hasSize(6) .contains(frodo, sam);   String[] newHires [...]

, , , ,

2 Comments

Giving Infinitest and “Continuous Testing” a try…

It has been a week since I started using Infinitest while working on FEST-Assert. I’m very pleased with the results, to the point that I’m getting addicted to it! Infinitest is an interesting tool that brings Continuous Testing to your IDE (Eclipse or IDEA.) From its website: Whenever you make a change, Infinitest runs tests [...]

, ,

6 Comments

Reorganizing long test classes

For the next release of FEST-Swing, the number of automated tests has increased considerably: from 2,677 to 3,000+ (and counting!) Special attention has been paid to the quality of the tests: DRY and readable code, meaningful assertions, and proper naming. Tests are treated with the same TLC (Tender Loving Care) as the rest of the [...]

, , ,

8 Comments