Skip to content

Conversation

nicoburns
Copy link
Contributor

This takes an object of the form:

{
    "test_name_3": { ... },
    "test_name_7": { ... },
    "test_name_1": { ... },
}

and turns it into:

{
    "test_name_1": { ... },
    "test_name_3": { ... },
    "test_name_7": { ... },
}

This makes it easier to compare the JavaScript and Rust implementations of the report generation, as we can apply the same sort on the Rust side and get a deterministic ordering.

Subtests are not sorted (original order is preserved) as they are listed in execution order which can be semantically important (execution order of whole tests is not important as they are independent (and also not present in the original report as tests are executed in parallel))

@nicoburns nicoburns requested a review from mukilan July 18, 2025 22:34
@nicoburns nicoburns force-pushed the sort-score-keys branch 2 times, most recently from 535ca1f to fdb449d Compare July 18, 2025 23:04
@nicoburns nicoburns merged commit 417fccd into main Aug 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants