Better cargo-less-support #2421
Replies: 2 comments 3 replies
-
i am not an expert on nextest's internals so I am unsure if my usage of |
Beta Was this translation helpful? Give feedback.
-
Thanks for the issue. You can provide the list of binaries and cargo metadata JSON over the command line via --binaries-metadata and --cargo-metadata respectively, though the binary list is a custom JSON blob (see https://docs.rs/nextest-metadata/latest/nextest_metadata/struct.BinaryListSummary.html). Agreed it would be nice to have an integrated solution. Unfortunately there are a lot of little details here to get right, such as paths to add to LD_LIBRARY_PATH, so a simple list of binaries isn't enough in many cases. I'd definitely welcome if someone did the work, though my impression is there's quite a bit of it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Motivation
Related to #842
The idea is to support bazel / other build systems where they do not use cargo to build the project and tests. Currently this is possible but is a bit hacky and would be great if we could get a more integrated way to do so.
Proposal
The alternative below works well and I haven't had any issues with it. I think it would be cool if we could provide nextest with a list of binaries and the cargo metadata json and then have nextest discover the tests without building. Ideally if we could get rid of the cargo metadata requirement too that would be nicer.
Alternatives
I wrote a
test-runner
binary with the following codeThen used it like such
Made a nicer macro wrapper around it so i dont have to do any
This works well and I havent had any issues with it. I think it would be cool if we could provide nextest with a list of binaries and the cargo metadata json asnd then have nextest discover the tests without building. Ideally if we could get rid of the cargo metadata requirement too that would be nice.
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions