Skip to content

feat: add cargo-mutants support#79

Merged
SecretSheppy merged 4 commits into
mainfrom
cargo-mutants
Jul 17, 2026
Merged

feat: add cargo-mutants support#79
SecretSheppy merged 4 commits into
mainfrom
cargo-mutants

Conversation

@SecretSheppy

@SecretSheppy SecretSheppy commented Jul 17, 2026

Copy link
Copy Markdown
Owner

currently only works if you manually remove the first none standard part of the json as the list of json objects is not standardized:

    {
      "scenario": "Baseline",
      "summary": "Success",
      "log_path": "log/baseline.log",
      "diff_path": null,
      "phase_results": [
        {
          "phase": "Build",
          "duration": 22.066161614,
          "process_status": "Success",
          "argv": [
            "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo",
            "test",
            "--no-run",
            "--verbose",
            "--package=hashbrown@0.17.1"
          ]
        },
        {
          "phase": "Test",
          "duration": 7.115485697,
          "process_status": "Success",
          "argv": [
            "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo",
            "test",
            "--verbose",
            "--package=hashbrown@0.17.1"
          ]
        }
      ]
    },

the problem is that the scenario field is supposed to be an object, but cargo-mutants can't stick to its own standards, and in this first fields its a string. This means that go's json package is unable to unmarshal it.

currently only works if you manually remove the first none standard part of the json as the list of json objects is not standardized
@SecretSheppy SecretSheppy self-assigned this Jul 17, 2026
@SecretSheppy SecretSheppy added the enhancement New feature or request label Jul 17, 2026
first outcome object doesn't match with the format of all the others, so parsing failed.
@SecretSheppy
SecretSheppy marked this pull request as ready for review July 17, 2026 22:22
@SecretSheppy
SecretSheppy merged commit e1ac912 into main Jul 17, 2026
1 check passed
@SecretSheppy
SecretSheppy deleted the cargo-mutants branch July 17, 2026 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant