我来自 C++ 背景,但我目前在 Ada 工作。在 C++ 世界中,我在编写每个类时都会对其进行单元测试……这似乎不是我们工作中的代码库的时尚。
我想开始为我创建的 Ada 包实施单元测试,是否有任何好的框架可以做到这一点?
我来自 C++ 背景,但我目前在 Ada 工作。在 C++ 世界中,我在编写每个类时都会对其进行单元测试……这似乎不是我们工作中的代码库的时尚。
我想开始为我创建的 Ada 包实施单元测试,是否有任何好的框架可以做到这一点?
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.)
tkoskine 说 AUnit 不支持 Ada95;不知道那是从哪里来的,在过去的 8 年里我一直在使用 AUnit 做一个仍然是 Ada95 的项目!
查看AUnit
VectorCAST/Ada已经存在了一段时间。