AUnit is a set of Ada packages based on the xUnit family of unit test frameworks. It's intended as a developer's tool to facilitate confident writing and evolution of Ada software.
Questions tagged [aunit]
7 questions
5
votes
1 answer
How can I specify functions or procedures GNATTest should auomatically generate a test case for
I'm working on a huge code package (written dominantly in ada), which is an extreme mess. No Unit Tests are applied so far and for all the existing code, Unit tests must not be implemented. But our Team decided, that all the new code should be…

Ralph Müller
- 53
- 3
5
votes
1 answer
How do you add a second test for a function when using GNAT test?
The documentation for Gnat test shows how to generate a harness and skeleton unit tests. It creates one unit test for each public function in the target project, but if I add another this gets overwritten when I regenerate the harness and skeleton…

TamaMcGlinn
- 2,840
- 23
- 34
3
votes
2 answers
Ada AUnit procedures Set_Up_Case and Tear_Down_Case called for each test
I am making unit tests in an Ada application in an existing suite based on aunit. According to their documentation and code, the procedures: Set_Up_Case and Tear_Down_Case should only run before the set of test routines. However, when I run the…

isgoed
- 724
- 6
- 12
3
votes
2 answers
Bug in AUnit which comes with GNAT
I believe I have found and fixed a bug in AUnit which comes as part of the GNAT compiler tools for Ada.
What is the best way to submit bugs to AdaCore for their community versions of the GNAT tools?
The following program silently aborts with the…

Wayne
- 66
- 4
1
vote
3 answers
Aunit test returning blocked for given Sample Apama Projects
I am trying to use AUnit for Unit testing in apama. So I checked and read tha Aunit package uses Apama Pysys in the backend to test Apama application.
While I was successful in building the Aunit package , I am getting an error in testing the…

Balpreet Singh
- 11
- 3
1
vote
2 answers
Ada: omit newline when redirecting to stdout (testing Put)
I am trying to write a test for a method with a simple Ada.Text_IO.Put. For the sake of simplicity, this is a made up method that I want to test:
procedure Say_Something is
begin
Put("Something.");
end Say_Something;
In my AUnit test, I…

Patrick Oscity
- 53,604
- 17
- 144
- 168
0
votes
1 answer
Where to download AUnit 3 (for Ada)?
Where to download the AUnit (AFAIK, the latest version is 3) for Ada (particularly for GNAT-4.9)?
I don't care whether this AUnit is licensed GPL or otherwise, because it is used only for my test program and the license of the test program does not…

porton
- 5,214
- 11
- 47
- 95