comp.lang.ada
 help / color / mirror / Atom feed
From: Christoffer Holmstedt <christoffer.holmstedt@gmail.com>
Subject: AUnit harness project and directory structure
Date: Fri, 18 Oct 2013 02:04:10 -0700 (PDT)
Date: 2013-10-18T02:04:10-07:00	[thread overview]
Message-ID: <4a87105b-cc34-4bcc-9981-90b2bc8711a8@googlegroups.com> (raw)

I just started with Ada and AUnit. I really like the rationale behind Ada that you (and others) read the code more than you write code. One thing that I can't understand is the file/directory/project structure of test harnesses.

As an example I'm looking at the very basic "calculator" example that comes with GNAT GPL. harness.gpr is put in the root folder and the actual code that is to be tested is put in the tested_lib/ folder, which is its own project.

When I've used test frameworks in other languages (python/Java) I've been able to completely move all test specific files out from the src/ folder. Is this possible with AUnit?

As an example I would like a structure as follows:

project\
project\src
project\src\PackageA
project\tests
project\tests\testPackageA

Any guidance concerning the AUnit structure and best practice is much appreciated.

             reply	other threads:[~2013-10-18  9:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-18  9:04 Christoffer Holmstedt [this message]
2013-10-18 11:56 ` AUnit harness project and directory structure Simon Wright
2013-10-20 15:45 ` Stephen Leake
2013-10-20 16:58   ` Christoffer Holmstedt
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox