Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there any good Unit Test frameworks for Ada? [closed]

I come from a C++ background, but I'm currently working in Ada. In the C++ world, I unit test every class as I write it... this doesn't seem to be the vogue for our codebase here at work.

I'd like to start implementing unit tests for the Ada packages I create, are there any good frameworks out there that do this?

like image 425
paxos1977 Avatar asked Mar 17 '09 18:03

paxos1977


People also ask

Which framework is used to test the unit integration end to end testing?

Cypress is another framework that has made the life of testers easy. It reduces the problems faced while using Selenium by using a different architecture than that of Selenium. While Selenium can be used in unit testing and end-to-end testing, Cypress focuses only on end-to-end testing.

How do I choose a unit test framework?

Which are the most important areas to test? Determine what you want to focus on before jumping into testing. Identify the highest-priority application features or areas that must be tested. Identify a list of scenarios within each feature to test, and to consider which level of testing can fulfill each.

Is jest the best testing framework?

Jest is a great testing framework for any JavaScript codebase, working especially well with React. But if we're working with another framework, like Angular, it might not be the right choice.


2 Answers

There are two open source JUnit-like unit testing frameworks around, AUnit and Ahven.

AUnit is good if you use Ada 2005 and GNAT compiler family. Downside is that you cannot use it in Ada 95 projects. Ahven fills the gap and concentrates on being compatible with various Ada 95 compilers (like older GNAT compilers, Janus/Ada, ObjectAda).

(PS. I am author of Ahven.)

like image 80
tkoskine Avatar answered Oct 24 '22 12:10

tkoskine


Check out AUnit

like image 34
Alex B Avatar answered Oct 24 '22 12:10

Alex B