Skip to content

Commit

Permalink
Add info to unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rocher committed Mar 3, 2023
1 parent d82c2ec commit f8ebe05
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/src/euler_tools_tests.adb
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@

with Ada.Command_Line;
with Ada.Containers;
with Ada.Text_IO;

with AUnit.Run;
with AUnit.Reporter.Text;
with AUnit.Test_Results;

with Euler_Test_Suite;
with Euler_Tools_Tests_Config; use Euler_Tools_Tests_Config;
with Euler_Tools;

procedure Euler_Tools_Tests is

Expand All @@ -30,10 +32,10 @@ procedure Euler_Tools_Tests is
Results : AUnit.Test_Results.Result;

begin
Ada.Text_IO.Put_Line
(" " & Euler_Tools.Library_Name & " = " & Euler_Tools.Library_Version);

if Build_Profile = development then
Reporter.Set_Use_ANSI_Colors (True);
end if;
Reporter.Set_Use_ANSI_Colors (Build_Profile = development);
Run (Reporter, Results);

if not Results.Successful then
Expand Down

0 comments on commit f8ebe05

Please sign in to comment.