Test ran at 2025-08-05 12:36:39.413982+00:00 SOLUTION: trendy_test=0.0.4: Minimal Effort Ada Unit Testing Library Origin: commit 1328b0c8fb46a5f214492e55e21c320b5ec4e5ea from https://github.com/pyjarrett/trendy_test.git Properties: Author: Paul Jarrett Build Switches: Description: Minimal Effort Ada Unit Testing Library License: Apache-2.0 Long_Description: # trendy_test Minimum Effort Ada Unit Testing Library [![Build Status](https://github.com/pyjarrett/trendy_test/actions/workflows/build.yml/badge.svg)](https://github.com/pyjarrett/trendy_test/actions) ## Features - Minimum setup - Parallelization of tests - Randomization of test order to find dependencies between tests - No generated code or scripts needed ## Example ```ada with Trendy_Test.Assertions.Integer_Assertions; with Trendy_Test.Reports; with my_tests; use Trendy_Test.Assertions; use Trendy_Test.Assertions.Integer_Assertions; procedure My_Test_Main is begin Trendy_Test.Register (My_Tests.All_Tests); Trendy_Test.Reports.Print_Basic_Report(Trendy_Test.Run); end My_Test_Main; ---------------------------------------------------------------- with Trendy_Test; package My_Tests is function All_Tests return Trendy_Test.Test_Group; end My_Tests; ---------------------------------------------------------------- package body My_Tests is procedure Test_Sample (T : in out Trendy_Test.Operation'Class) is begin -- Don't put anything above here you don't want run during listing/other ops. T.Register; Assert (T, Some_Expression); end Test_Sample; procedure Test_Is_Disabled (T : in out Trendy_Test.Operation'Class) is begin T.Register(Disabled => True); -- Disabled, don't run this test. Assert (T, Some_Expression); end Test_Is_Disables; procedure Test_Is_Not_Run_In_Parallel (T : in out Trendy_Test.Operation'Class) is begin T.Register(Parallelize => False); -- There's some dependency, so don't run it in parallel. Assert (T, Some_Expression); end Test_Is_Not_Run_In_Parallel; function All_Tests return Trendy_Test.Test_Group is begin return (Test_Sample'Access, Test_Is_Disabled'Access ); end All_Tests; end My_Tests; ``` ## Example Output ``` D:\dev\ada\trendy_command_line\bin\trendy_command_line_test_main [ PASS ] shared_pointers_tests.test_multiple_oracles 0.000105300 [ PASS ] shared_pointers_tests.test_single_oracle 0.000052700 [ PASS ] trendy_command_line.context_free.tests.test_is_long_option 0.000002300 [ PASS ] trendy_command_line.context_free.tests.test_is_option_terminator 0.000007200 [ PASS ] trendy_command_line.context_free.tests.test_is_short_option 0.000005000 [ PASS ] trendy_command_line.context_free.tests.test_is_short_option_or_group 0.000009200 [ PASS ] trendy_command_line_tests.flags.test_boolean_option_defaults 0.000149400 [ FAIL ] trendy_command_line_tests.flags.test_boolean_option_short_option_group 0.000185600 Assertion Failed: (Condition false) at D:\dev\ada\trendy_command_line\src\trendy_command_line_tests-flags.adb: 110[D:\dev\ada\trendy_command_line\bin\trendy_command_line_test_main.exe] 0x453530 Trendy_Test.Report_Failure at trendy_test.adb:88 0x4535a4 Trendy_Test.Assert at trendy_test.adb:102 0x425338 Trendy_Command_Line_Tests.Flags.Test_Boolean_Option_Short_Option_Group at trendy_command_line_tests-flags.adb:110 0x451ff1 Trendy_Test.Run_Test at trendy_test.adb:237 0x452d4c Trendy_Test.Run.Parallel_Test_TaskTB at trendy_test.adb:277 0x4601a2 system__tasking__queuing__select_protected_entry_call at ??? [C:\Windows\System32\KERNEL32.DLL] 0x7ffd7d1f7032 [C:\Windows\SYSTEM32\ntdll.dll] 0x7ffd7e08264f [ FAIL ] trendy_command_line_tests.flags.test_boolean_option_short_options 0.001984800 Assertion Failed: (Condition false) at D:\dev\ada\trendy_command_line\src\trendy_command_line_tests-flags.adb: 93[D:\dev\ada\trendy_command_line\bin\trendy_command_line_test_main.exe] 0x453530 Trendy_Test.Report_Failure at trendy_test.adb:88 0x4535a4 Trendy_Test.Assert at trendy_test.adb:102 0x425a43 Trendy_Command_Line_Tests.Flags.Test_Boolean_Option_Short_Options at trendy_command_line_tests-flags.adb:93 0x451ff1 Trendy_Test.Run_Test at trendy_test.adb:237 0x452d4c Trendy_Test.Run.Parallel_Test_TaskTB at trendy_test.adb:277 0x4601a2 system__tasking__queuing__select_protected_entry_call at ??? [C:\Windows\System32\KERNEL32.DLL] 0x7ffd7d1f7032 [C:\Windows\SYSTEM32\ntdll.dll] 0x7ffd7e08264f [ PASS ] trendy_command_line_tests.flags.test_boolean_option_toggles 0.000153600 [ PASS ] trendy_command_line_tests.flags.test_boolean_option_too_many_occurrences 0.003517400 [ PASS ] trendy_command_line_tests.test_long_option_with_argument 0.000013000 [ PASS ] trendy_command_line_tests.test_one_operand 0.000006700 [ PASS ] trendy_command_line_tests.test_short_option_with_argument 0.000193600 Results: Passed: 12 / 14 ``` Maintainer: Paul Jarrett Maintainers_Logins: pyjarrett Name: trendy_test Project_File: trendy_test.gpr Tag: test Tag: unit-test Tag: unit Version: 0.0.4 Website: https://github.com/pyjarrett/trendy_test LOG: [alr test] Testing trendy_test=0.0.4 [alr test] Spawning retrieval for remote crate: alr -d -n get trendy_test=0.0.4 Note: Deploying trendy_test=0.0.4... trendy_test=0.0.4 successfully retrieved. There are no dependencies. [alr test] Spawning default test for remote crate: alr -d -n build --release -- -cargs:Ada -gnatwn Note: Building trendy_test=0.0.4/trendy_test.gpr... Setup [mkdir] object directory for project Trendy_Test [mkdir] library directory for project Trendy_Test Compile [Ada] trendy_test_config.ads [Ada] trendy_test.adb [Ada] trendy_test-xml_reports.adb [Ada] trendy_test-reports.adb gnat1: invalid switch: -gnat2022 gnat1: invalid switch: -gnat2022 gnat1: invalid switch: -gnat2022 gnat1: invalid switch: -gnat2022 compilation of trendy_test-reports.adb failed compilation of trendy_test-xml_reports.adb failed compilation of trendy_test.adb failed compilation of trendy_test_config.ads failed gprbuild: *** compilation phase failed stderr: Command ["gprbuild", "-s", "-j0", "-p", "-P", "D:\a\alire-crates-ci\alire-crates-ci\test\3de0e8e1-c070-4dab-b6a3-1815a5694cb9\trendy_test_0.0.4_1328b0c8\trendy_test.gpr", "-cargs:Ada", "-gnatwn"] exited with code 4 ERROR: Command ["gprbuild", "-s", "-j0", "-p", "-P", "D:\a\alire-crates-ci\alire-crates-ci\test\3de0e8e1-c070-4dab-b6a3-1815a5694cb9\trendy_test_0.0.4_1328b0c8\trendy_test.gpr", "-cargs:Ada", "-gnatwn"] exited with code 4 stderr: ALIRE.CHECKED_ERROR stderr: Command ["gprbuild", "-s", "-j0", "-p", "-P", "D:\a\alire-crates-ci\alire-crates-ci\test\3de0e8e1-c070-4dab-b6a3-1815a5694cb9\trendy_test_0.0.4_1328b0c8\trendy_test.gpr", "-cargs:Ada", "-gnatwn"] exited with code 4 stderr: raised ALIRE.CHECKED_ERROR : alire-stored-error:1 [D:\a\alire-crates-ci\alire-crates-ci\alire_install\bin\alr.exe] 0x7ff785fada2a Semantic_Versioning.Basic.Restrictions.First_Index at alire.adb:284 0x7ff785ba595b Semantic_Versioning.Basic.Restrictions.First_Index at alire-os_lib-subprocess.adb:111 0x7ff785e5cba1 Semantic_Versioning.Basic.Restrictions.First_Index at alire-spawn.adb:22 0x7ff785e5dd5d Semantic_Versioning.Basic.Restrictions.First_Index at alire-spawn.adb:68 0x7ff785d82d64 Semantic_Versioning.Basic.Restrictions.First_Index at alire-roots.adb:189 0x7ff785d811da Semantic_Versioning.Basic.Restrictions.First_Index at alire-roots.adb:255 0x7ff785da912d Semantic_Versioning.Basic.Restrictions.First_Index at alire-roots.adb:2143 0x7ff785e182f9 Semantic_Versioning.Basic.Restrictions.First_Index at alire-solutions.adb:1472 0x7ff785e17424 Semantic_Versioning.Basic.Restrictions.First_Index at alire-solutions.adb:1555 0x7ff785da922c Semantic_Versioning.Basic.Restrictions.First_Index at alire-roots.adb:2147 0x7ff785da92fa Semantic_Versioning.Basic.Restrictions.First_Index at alire-roots.adb:2127 0x7ff785d817a7 Semantic_Versioning.Basic.Restrictions.First_Index at alire-roots.adb:286 0x7ff785d81912 Semantic_Versioning.Basic.Restrictions.First_Index at alire-roots.adb:114 0x7ff7854f3baa Semantic_Versioning.Basic.Restrictions.First_Index at alr-commands-build.adb:145 0x7ff7854f341e Semantic_Versioning.Basic.Restrictions.First_Index at alr-commands-build.adb:113 0x7ff7854f35ba Semantic_Versioning.Basic.Restrictions.First_Index at alr-commands-build.adb:54 0x7ff7855a5dea Semantic_Versioning.Basic.Restrictions.First_Index at clic-subcommand-instance.adb:749 0x7ff7855b2b0e Semantic_Versioning.Basic.Restrictions.First_Index at alr-commands.adb:632 0x7ff7854816a0 Alr.Main at alr-main.adb:13 0x7ff785485270 Main at b__alr-main.adb:2454 0x7ff78548133e __tmainCRTStartup at ??? 0x7ff785481144 mainCRTStartup at ??? [C:\Windows\System32\KERNEL32.DLL] 0x7fffe24e4cae [C:\Windows\SYSTEM32\ntdll.dll] 0x7fffe45fedc9 stderr: ALIRE.ROOTS.BUILD._WRAPPED_STATEMENTS.BUILD_FAILED stderr: alire-roots.adb:202 stderr: raised ALIRE.ROOTS.BUILD._WRAPPED_STATEMENTS.BUILD_FAILED : alire-roots.adb:202 [D:\a\alire-crates-ci\alire-crates-ci\alire_install\bin\alr.exe] 0x7ff785d8313c Semantic_Versioning.Basic.Restrictions.First_Index at alire-roots.adb:202 0x7ff785d811da Semantic_Versioning.Basic.Restrictions.First_Index at alire-roots.adb:255 0x7ff785da912d Semantic_Versioning.Basic.Restrictions.First_Index at alire-roots.adb:2143 0x7ff785e182f9 Semantic_Versioning.Basic.Restrictions.First_Index at alire-solutions.adb:1472 0x7ff785e17424 Semantic_Versioning.Basic.Restrictions.First_Index at alire-solutions.adb:1555 0x7ff785da922c Semantic_Versioning.Basic.Restrictions.First_Index at alire-roots.adb:2147 0x7ff785da92fa Semantic_Versioning.Basic.Restrictions.First_Index at alire-roots.adb:2127 0x7ff785d817a7 Semantic_Versioning.Basic.Restrictions.First_Index at alire-roots.adb:286 0x7ff785d81912 Semantic_Versioning.Basic.Restrictions.First_Index at alire-roots.adb:114 0x7ff7854f3baa Semantic_Versioning.Basic.Restrictions.First_Index at alr-commands-build.adb:145 0x7ff7854f341e Semantic_Versioning.Basic.Restrictions.First_Index at alr-commands-build.adb:113 0x7ff7854f35ba Semantic_Versioning.Basic.Restrictions.First_Index at alr-commands-build.adb:54 0x7ff7855a5dea Semantic_Versioning.Basic.Restrictions.First_Index at clic-subcommand-instance.adb:749 0x7ff7855b2b0e Semantic_Versioning.Basic.Restrictions.First_Index at alr-commands.adb:632 0x7ff7854816a0 Alr.Main at alr-main.adb:13 0x7ff785485270 Main at b__alr-main.adb:2454 0x7ff78548133e __tmainCRTStartup at ??? 0x7ff785481144 mainCRTStartup at ??? [C:\Windows\System32\KERNEL32.DLL] 0x7fffe24e4cae [C:\Windows\SYSTEM32\ntdll.dll] 0x7fffe45fedc9 ERROR: Compilation failed.