Adacovex.Parsers.Tests¶
Parser for test-run results. Reads a Markdown-format test summary file or parses raw stdout to produce a structured Test_Summary. HLR-TEST: Test result parsing
Recognized formats (all additive, best-effort): Markdown table | Category | Tests | PASS/FAIL | rows Summary line “Passed: N Failed: M” TAP “ok N - name” / “not ok N - name” Automake suite “PASS: name” / “FAIL: name” Maven Surefire “Tests run: N, Failures: M, Errors: E” Unity “N Tests M Failures [K Ignored]”
See also: Test Result Formats
Note: All items in this package are public.
Functions¶
function Find_Test_Result (Target_Dir : Standard.String) return Standard.String [Pre]¶
Parameter |
Description |
|---|---|
|
Root directory to inspect. |
Returns: Path to a discovered test-result file, or “”.
function Starts_With (S : Standard.String; Pre : Standard.String) return Standard.Boolean [Global]¶
Parameter |
Description |
|---|---|
|
Required prefix. |
|
Candidate string. |
Returns: True when S’Length >= Pre’Length and the first Pre’Length
Procedures¶
procedure Parse_Test_Result (File_Path : Standard.String; Summary : Adacovex.Types.Implementation.Test_Summary; Success : Standard.Boolean) [Pre]¶
Parameter |
Description |
|---|---|
|
Path to test result Markdown file. |
|
True if file was parsed successfully. |
|
Output test summary record. |
procedure Parse_Test_Result_From_Project (Target_Dir : Standard.String; Summary : Adacovex.Types.Implementation.Test_Summary; Success : Standard.Boolean) [Pre]¶
Parameter |
Description |
|---|---|
|
True if a test result file was found and parsed. |
|
Output test summary record. |
|
Target project root directory. |