This repository has been archived by the owner on Sep 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Implement framework for comparing guppy's results to cargo #83
Labels
better-testing
Improvements to guppy's testing
Comments
Is there an API for queries in cargo? Or are you thinking of somehow adapting the graph to cargo's native structs? |
There are a few APIs for queries, e.g. https://docs.rs/cargo/0.43.1/cargo/ops/fn.resolve_ws_with_opts.html. It won't cover everything that guppy does but it'll still be useful probably! |
@bmwill asked me about why this would be useful when |
sunshowers
added a commit
to sunshowers/cargo-guppy
that referenced
this issue
May 1, 2020
This works by: * setting up a real, fairly complex fixture * generating random queries using proptest * running them through cargo and guppy * ensuring that they produce the same results Not only does this give us high confidence that cargo and guppy produce the same results, it also gets us most of the way to facebookarchive#83. Most of the work in this commit is simply setting up all the necessary test infrastructure. We piggy-back on existing proptest infrastructure as much as possible.
sunshowers
added a commit
to sunshowers/cargo-guppy
that referenced
this issue
May 2, 2020
This works by: * setting up a real, fairly complex fixture * generating random queries using proptest * running them through cargo and guppy * ensuring that they produce the same results Not only does this give us high confidence that cargo and guppy produce the same results, it also gets us most of the way to facebookarchive#83. Most of the work in this commit is simply setting up all the necessary test infrastructure. We piggy-back on existing proptest infrastructure as much as possible.
sunshowers
added a commit
to sunshowers/cargo-guppy
that referenced
this issue
May 3, 2020
This works by: * setting up a real, fairly complex fixture * generating random queries using proptest * running them through cargo and guppy * ensuring that they produce the same results Not only does this give us high confidence that cargo and guppy produce the same results, it also gets us most of the way to facebookarchive#83. Most of the work in this commit is simply setting up all the necessary test infrastructure. We piggy-back on existing proptest infrastructure as much as possible.
sunshowers
added a commit
to sunshowers/cargo-guppy
that referenced
this issue
May 3, 2020
This works by: * setting up a real, fairly complex fixture * generating random queries using proptest * running them through cargo and guppy * ensuring that they produce the same results Not only does this give us high confidence that cargo and guppy produce the same results, it also gets us most of the way to facebookarchive#83. Most of the work in this commit is simply setting up all the necessary test infrastructure. We piggy-back on existing proptest infrastructure as much as possible.
sunshowers
added a commit
to sunshowers/cargo-guppy
that referenced
this issue
May 5, 2020
This works by: * setting up a real, fairly complex fixture * generating random queries using proptest * running them through cargo and guppy * ensuring that they produce the same results Not only does this give us high confidence that cargo and guppy produce the same results, it also gets us most of the way to facebookarchive#83. Most of the work in this commit is simply setting up all the necessary test infrastructure. We piggy-back on existing proptest infrastructure as much as possible.
sunshowers
added a commit
that referenced
this issue
May 6, 2020
This works by: * setting up a real, fairly complex fixture * generating random queries using proptest * running them through cargo and guppy * ensuring that they produce the same results Not only does this give us high confidence that cargo and guppy produce the same results, it also gets us most of the way to #83. Most of the work in this commit is simply setting up all the necessary test infrastructure. We piggy-back on existing proptest infrastructure as much as possible.
Done with |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
guppy
is a reimplementation of parts ofcargo
. It would be cool to compareguppy
's results withcargo
's continuously against real-world repositories.Here's one way to make that happen:
guppy-comparer
which depends on bothguppy
andcargo
.cargo
API to load up the repoguppy
to load up the cargo metadataguppy
andcargo
data structuresproptest
guppy
andcargo
Examples of things to test:
The text was updated successfully, but these errors were encountered: