Skip to content

Commit 701ce8a

Browse files
committed
Only allow the TRX reporter in the full_runtime
I decided to just add a full_runtime directory; any other reporters that people want to add can be added to this directory
1 parent b374c93 commit 701ce8a

3 files changed

Lines changed: 13 additions & 3 deletions

File tree

include/aunit/reporters/aunit-reporter-trx.adb renamed to include/aunit/reporters/full_runtime/aunit-reporter-trx.adb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ package body AUnit.Reporter.TRX is
155155
Put_Line (File, "Assertion failed on line"
156156
& SU.To_String (Test.Line)
157157
& " of " & SU.To_String (Test.Failure_Source_Name)
158-
& ": """ & SU.To_String (Test.Failure_Message) & """");
158+
& ": """
159+
& SU.To_String (Test.Failure_Message) & """");
159160
else
160161
Put_Line (File, "Raised " & SU.To_String (Test.Exception_Name)
161162
& ":");
File renamed without changes.

lib/gnat/aunit.gpr

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,23 @@ project AUnit is
66
type Compilation_Mode_Type is ("Devel", "Install");
77
Mode : Compilation_Mode_Type := external ("AUNIT_BUILD_MODE", "Install");
88

9+
Reporters := ("../../include/aunit/reporters");
10+
11+
case AUnit_Shared.Runtime is
12+
when "full" =>
13+
Reporters := Reporters & ("../../include/aunit/reporters/full_runtime");
14+
when others =>
15+
null;
16+
end case;
17+
918
for Source_Dirs use
1019
("../../include/aunit/framework",
1120
"../../include/aunit/containers",
12-
"../../include/aunit/reporters",
1321
"../../include/aunit/framework/" & AUnit_Shared.Except,
1422
"../../include/aunit/framework/" & AUnit_Shared.Calend,
1523
"../../include/aunit/framework/" & AUnit_Shared.Memory,
16-
"../../include/aunit/framework/" & AUnit_Shared.FileIO);
24+
"../../include/aunit/framework/" & AUnit_Shared.FileIO)
25+
& Reporters;
1726

1827
for Library_Dir use AUnit_Shared.Library_Dir;
1928

0 commit comments

Comments
 (0)