
Are there any good Unit Test frameworks for Ada? [closed]
2012年7月14日 · 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.
Is there a way to test for the throwing of an exception in a Ada …
2017年11月29日 · I saw this question which uses the Ada unit test framework - in the present situation, that is not an option; however, I may re-work them to be able to use this (my understanding is that adding unit test projects to an existing legacy code base is a time-consuming process).
unit testing - Ada AUnit procedures Set_Up_Case and …
2021年7月5日 · 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 unit-tests (specific class or SmokeTests), then I see, they are run before and after each test.
testing - Ada: using aunit - Stack Overflow
2010年8月5日 · I came across the tool aunit for writing test drivers. I write quite simple Ada programs and was wondering if it's worth to learn aunit and use it even on simple programs. I looked at the aunit manual and I didn't find easy examples to start with. Are there other sources around that show how to use aunit?
Is is possible to have a child package as a separate compilation …
2013年5月3日 · The subtle difference is that child-packages are always a separately compiled unit (in GNAT they are always in a different file, this is an implementation restriction due to how they [don't] implement the Library.. but some Ada compilers can put different compilation_units into the same file) -- but a nested-package must be compiled at the same ...
Ada, check out my package. ("compilation unit expected"?)
2010年12月16日 · This is an imporant thing to note. gcc's Ada implementation takes the rather unusual step of forcing file names to match identifier names of the contents of the files. Specifically, if the file contains a package body or subroutine named fnord , then the file must (by default anyway) be named fnord.adb .
In Ada, why doesn't a child get instantiated with the generic …
2021年1月5日 · Now in Ada, generic instantiation is explicit and each instantiation instantiates exactly one generic unit. In your case, package Parent_Inst is new Parent (T => Integer); instantiates the Parent package. It does not instantiate Parent.Child because that is a …
Ada compilation "does not contain expected unit"
2012年3月24日 · usually occurs when the name of the unit does not match the file name (package body aaa.bbb needs to be in file aaa-bbb.adb and package aaa.bbb needs to be in aaa-bbb.ads) "expecting a spec but found a body"
Exception Handling in Ada during Unit Test - Stack Overflow
I am attempting to write some unit tests for some Ada code I recently wrote, I have a particular case where I am expecting to get an Exception (if the code worked correctly I wouldn't but in this case all I'm doing is testing, not writing code).
ada - Same Base Package in Multiple Linked GPRBuild Projects
2018年11月2日 · unit "base" cannot belong to several projects. The question is: is there a way to have the same base package in multiple projects? Projects that are then linked together through an import (with). If it should prove to be possible, how can it be achieved?