Ahven 2.2 released

Tero Koskinen recently released version 2.2 of his Ahven unit testing library:

This (2.2) is long overdue bug fix release for Ahven. Ahven.XML_Runner had same bug as Ahven.Text_Runner and this release fixes it. Now your XML test result files should have skipped tests correctly reported. Another bigger change is API documentation generator change from Adabrowse to Sphinx.

You can find the projects official SourceForge page here or you can skip all the difficult stuff and go straight to the goodies.

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.

Ahven 2.1 released

While I was wandering around in Texas on my vacation, eating greasy burgers at Top of The Hill Greasy Burgers (awesome burgers!), Tero Koskine released Ahven version 2.1.

Ahven is a simple unit test library (or a framework) for the Ada programming language. It is loosely modelled after JUnit and some ideas are taken from AUnit. Ahven is free software distributed under permissive ISC license and should work with any Ada 95 or 2005 compiler.

Some features of Ahven are:

  • Simple API
  • Small size (Ahven 2.1 has 2.1K SLOC; 588 statements; 1228 declarations)
  • As is usual with projects from Tero, the source code compiles on multiple platforms, so have at it.

  • Plain Ada 95 code, no Ada 2005 features used, but can be compiled as Ada 2005 code if needed
  • Permissive Open Source license

The 2.1 release fixes one bug, that was introduced in the one day older 2.0 release:

The release fixes the skipped test reporting in Ahven.Text_Runner.

Or as Tero eloquently puts it: Version numbers are cheap

Ahven Version 1.9 Released

Today Tero Koskinen released version 1.9 of his Ahven library. Ahven is a…

…simple unit testing library for the Ada 95 programming language. The source code is fully portable and works with any Ada 95 compiler.

According to Tero himself, this is a minor update, and reading the changelog I’m inclined to agree with him, though it is nice that Ahven now compiles using GNAT GPL 2010.

You can download Ahven here and checkout the development version from Ahven’s Mercurial repository.