Commit 709f0a0
committed
Test: Split long failure diagnostics without truncation
Renames and updates the DiscordReportFormatter test to validate splitting of large failure diagnostics instead of step results. The test now builds a small report with a failed step and a 2500-character diagnostic payload, invokes the formatter, collects messages containing the "Failure Diagnostics" field, and asserts that diagnostics are split across multiple messages, that all 2500 'z' characters are preserved, that the relevant step label (Step 3) appears, and that no truncation marker is present. Replaces previous assertions which targeted "Step Results".1 parent 0bf950b commit 709f0a0
File tree
1 file changed
+29
-12
lines changed- src/Validator.Core.Tests/Reporter
1 file changed
+29
-12
lines changedLines changed: 29 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
18 | 32 | | |
| 33 | + | |
19 | 34 | | |
20 | | - | |
21 | | - | |
| 35 | + | |
| 36 | + | |
22 | 37 | | |
23 | 38 | | |
24 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
25 | 44 | | |
26 | | - | |
27 | | - | |
28 | | - | |
| 45 | + | |
29 | 46 | | |
30 | | - | |
31 | | - | |
32 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
33 | 50 | | |
34 | 51 | | |
35 | 52 | | |
| |||
0 commit comments