Aunit vs. Ahven

I’ll be honest with you: I’m not very good at using testing frameworks. I know I’m supposed to, but I just can’t get around to actually doing it. Luckily for me, not all programmers are like that, and one of those bright ones is Stephane Carrez of Java 2 Ada fame.

His latest article is named Aunit vs. Ahven and as the name implies, it deals with the two testing frameworks Aunit and Ahven.

AUnit and Ahven are two testing frameworks for Ada. Both of them are inspired from the well known JUnit Java framework. Having some issues with the Aunit testing framework, I wanted to explore the use of Ahven. This article gives some comparison elements between the two unit test frameworks. I do not pretend to list all the differences since both frameworks are excellent.

Writing a unit test is equally simple in both frameworks. They however have some differences that may not be visible at the first glance.

Stephane list both good and bad points for both frameworks and ends up concluding that you don’t have to choose between the two! Instead you can use his Util.XUnit package to expose a common interface to both frameworks. Here’s the specification for Util.XUnit for Aunit and here is Util.XUnit for Ahven.

Quite nifty.