i am trying to figure out if there is a way to run all tests in a project without using cargo. So I basically want to replicate what cargo test does but without relying on cargo. It it ends up requiring some nasty bash scripting I could live with that. Right now i have absolutely no idea however.
Thanks in advance!
-Tobi
PS: In case you are wondering why the heck i would want to do something weird like that: I am trying to to execute tests as part of a Nix Rust build function which doesn't use cargo directly.. I prefer to not derail into the details of that
The should all be relatively easy if you have the library compiling, you just need to change the flags slightly. Given a crate that is compiled with a command line like
This will compile and run each of the doc-tests itself, not producing a binary like the other commands.
With each of these you will of course also need to be adding in all the necessary dev-dependencies, but that should be pretty straightforward if you have dependency management for the main library working.