Short Question: Is there a way to add a shell command that gets executed before every invocation of “cargo tests”.
I do NOT want it to be invoked before every unit tests.
I want it to be invoked once before every “cargo test” command.
I have a Makefile which compiles a bunch of cuda files to ptx. Right now, my work flow is:
- edit some *.cu; 2. run make, 3. run rust unit test
Sometimes I forget 2. I would like it so that before every “cargo test” command, a pre-hook is executed to re-run the makefile.
Why not just make a command lien shortcut?
Cargo test is being called via IntelliJ.