How can I use crane with cargo-nextest to get the libtest-json output from nextest? #915
Answered
by
ipetkov
matthiasbeyer
asked this question in
Q&A
-
|
Is there a way to build my derivation with Something akin to the following call: export NEXTEST_EXPERIMENTAL_LIBTEST_JSON=1
cargo nextest \
--no-tests pass \
--color never \
--hide-progress-bar \
--success-output never \
--failure-output never \
--message-format libtest-json > $out/out.json |
Beta Was this translation helpful? Give feedback.
Answered by
ipetkov
Oct 20, 2025
Replies: 1 comment 1 reply
-
|
Hi @matthiasbeyer! There's a few ways to do this:
Hope this helps! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ipetkov
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @matthiasbeyer! There's a few ways to do this:
cargoNextestPartitionsExtraArgsand see if that gets you what you needpreCheckorpostCheckorpostInstalletc) that performs the operation.cargoNextestis built on top ofmkCargoDerivationwhich is built on top ofstdenv.mkDerivationso all the same build hook behavior you'd expect of a regular derivation is possible (though check out the API docs for the full details)mkCargoDerivationdirectly and specify the command to runHope this helps!