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?
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.
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.
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.
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.)
Check out AUnit
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With