File: README

package info (click to toggle)
libaunit 1.03-7
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 364 kB
  • sloc: ada: 1,552; makefile: 61; sh: 6
file content (88 lines) | stat: -rw-r--r-- 2,723 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
AUnit 1.03 README
07 June 2004

This is a minor update release of the Ada unit test framework AUnit, derived 
from the JUnit framework for Java.  Read AUnit.html for usage.


Installation:

Unzip the archive into <install-dir>.  Build and run
 <install-dir>/aunit-1.03/test/harness.adb to verify that it works. To build, 
connect to <install-dir>/aunit-1.03 and type:

gnatmake -Paunit_tests

To execute, type:

./harness   -- or "harness" on Windows

The output should be:

   Total Tests Run:  24

   Successful Tests: 24

   Failed Tests: 0

   Unexpected Errors: 0


-------


Directories contain the following:

aunit      - Top-level: includes README etc, a GNAT project file for
             AUnit, and a GNAT project file for the AUnit tests
aunit/*    - The framework and a simple text mode reporter of results
template/* - Templates for unit tests and a test harness, and for a GNAT 
	     project file.
tests/*    - A set of unit tests for testing the framework itself

Currently AUnit is written to work with the open source GNAT Ada compilation
system.  To that end, GNAT project files have been provided.  For other 
compilation systems, the sources in aunit-1.03/aunit/* must be made accessible
to the compilation system according to its conventions.


Switches:

Any test harness using AUnit.Test_Results.Text_Reporter can be invoked with
the following command syntax:

test_harness [ -v | -V ]

-v : Verbose mode.  Lists all tests executed.  When not specified, only failed
     and error tests are listed.

Changes:
1.03    1. Handling of exceptions in Set_Up and Tear_Down implemented.
        D603-009.

1.02    1. Added GNAT project files (*.gpr).

	2. Added routines Set_Up_Case and Tear_Down_Case to AUnit.Test_Cases
	to support fixture maintenance needed before and after the execution
	of the full sequence of test routines.

1.01	1. Added Test_Case'Class parameter to test routines, allowing access to
	Test_Case per-instance data.  This may be useful for derived Test_Case
	instances, as an alternative to using global package body data.

	2. Changed the profile of AUnit.Test_Runner to:
		procedure AUnit.Test_Runner (Timed : Boolean := True);
	This allows suppression of timing reporting so that the output
	of running a harness can be identical across runs.  Useful for
	scripted regression tests, where the output of a harness run is
	compared against a reference file.

	3. Implemented remaining memory management for the framework.  There
	should be no memory leaks now (checked with gnatmem).

	4. Corrected error in AUnit.Lists.Put_Right, where the list wasn't
	being chained correctly.

	5. Added Set_Up and Tear_Down routines to AUnit.Lists tests.

Maintainer: Ed Falis (falis@gnat.com)