1 | ------------------------------------------------------------------------------ |
---|---|
2 | -- -- |
3 | -- GNAT COMPILER COMPONENTS -- |
4 | -- -- |
5 | -- A U N I T . R E P O R T E R -- |
6 | -- -- |
7 | -- S p e c -- |
8 | -- -- |
9 | -- -- |
10 | -- Copyright (C) 2008-2019, AdaCore -- |
11 | -- -- |
12 | -- GNAT is free software; you can redistribute it and/or modify it under -- |
13 | -- terms of the GNU General Public License as published by the Free Soft- -- |
14 | -- ware Foundation; either version 3, or (at your option) any later ver- -- |
15 | -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- |
16 | -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- |
17 | -- or FITNESS FOR A PARTICULAR PURPOSE. -- |
18 | -- -- |
19 | -- As a special exception under Section 7 of GPL version 3, you are granted -- |
20 | -- additional permissions described in the GCC Runtime Library Exception, -- |
21 | -- version 3.1, as published by the Free Software Foundation. -- |
22 | -- -- |
23 | -- You should have received a copy of the GNU General Public License and -- |
24 | -- a copy of the GCC Runtime Library Exception along with this program; -- |
25 | -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- |
26 | -- <http://www.gnu.org/licenses/>. -- |
27 | -- -- |
28 | -- GNAT is maintained by AdaCore (http://www.adacore.com) -- |
29 | -- -- |
30 | ------------------------------------------------------------------------------ |
31 | |
32 | with AUnit.IO; |
33 | with AUnit.Options; use AUnit.Options; |
34 | with AUnit.Test_Results; use AUnit.Test_Results; |
35 | |
36 | package AUnit.Reporter is |
37 | |
38 | type Reporter is abstract tagged private; |
39 | |
40 | procedure Set_File |
41 | (Engine : in out Reporter; |
42 | Value : AUnit.IO.File_Access); |
43 | |
44 | procedure Report |
45 | (Engine : Reporter; |
46 | R : in out Result'Class; |
47 | Options : AUnit_Options := Default_Options) is abstract; |
48 | -- This procedure is called by AUnit.Run to report the result after running |
49 | -- the whole testsuite (or the selected subset of tests). |
50 | |
51 | private |
52 | |
53 | type Reporter is abstract tagged |
54 | record |
55 | File : AUnit.IO.File_Access := AUnit.IO.Standard_Output; |
56 | end record; |
57 | |
58 | end AUnit.Reporter; |