-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
#84 highlights the problem of poorly generated test outputs.
In some tests as well, we have JSON keys that are ordered alphabetically and some not. See below for snippets. This can make it hard to see the diff when introducing large changes. Should we regenerate all the tests outputs?
cargo-plumbing/tests/testsuite/lock_dependencies.rs
Lines 762 to 783 in 3a80b98
assert_e2e().eq( | |
latest_lock, | |
str![[r#" | |
[ | |
{ | |
"reason": "lockfile", | |
"version": null | |
}, | |
{ | |
"reason": "locked-package", | |
"id": "registry+https://github.com/rust-lang/crates.io-index#[email protected]", | |
"checksum": "3a351dafbc8a3a9cba7c06dfe8caa11a3a45f800a336bb5b913a8f1e2652d454" | |
}, | |
{ | |
"reason": "locked-package", | |
"id": "[email protected]", | |
"dependencies": [ | |
"a" | |
] | |
} | |
] | |
"#]] |
cargo-plumbing/tests/testsuite/lock_dependencies.rs
Lines 648 to 672 in 3a80b98
assert_e2e().eq( | |
latest_lock, | |
str![[r#" | |
[ | |
{ | |
"reason": "lockfile", | |
"version": 4 | |
}, | |
{ | |
"checksum": "3a351dafbc8a3a9cba7c06dfe8caa11a3a45f800a336bb5b913a8f1e2652d454", | |
"id": "registry+https://github.com/rust-lang/crates.io-index#[email protected]", | |
"reason": "locked-package" | |
}, | |
{ | |
"dependencies": [ | |
"a" | |
], | |
"id": "[email protected]", | |
"reason": "locked-package" | |
} | |
] | |
"#]] | |
.is_json() | |
.against_jsonlines(), | |
); |
Metadata
Metadata
Assignees
Labels
No labels