Skip to content

Tests: aggregate high-volume CFDictionary assertions - #157

Open
DTW-Thalion wants to merge 1 commit into
gnustep:masterfrom
DTW-Thalion:tests/aggregate-verbose-assertions
Open

Tests: aggregate high-volume CFDictionary assertions#157
DTW-Thalion wants to merge 1 commit into
gnustep:masterfrom
DTW-Thalion:tests/aggregate-verbose-assertions

Conversation

@DTW-Thalion

Copy link
Copy Markdown
Contributor

The large-dictionary loops in CFDictionary/general.m and CFDictionary/bridge.m logged one passed assertion per iteration, which is the main source of the verbose output described in the issue.

Each of those loops now runs a single assertion covering all keys instead of one per key. On failure the first offending key is printed before the assertion, so the detail is still available when a test does not pass.

The smaller fixed-size loops in general.m are aggregated the same way for consistency. Test coverage is unchanged.

Closes #156.

The general.m and bridge.m large-dictionary loops emitted one passed
assertion per iteration, producing thousands of redundant log lines.
Collapse each loop into a single assertion covering all keys and report
the first offending key only on failure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Test assertions produce verbose logs

1 participant