japaric / utest

Unit `#[test]`ing for microcontrollers and other `no_std` systems
125 stars 7 forks source link

Use utest without xargo? #3

Open MathiasKoch opened 5 years ago

MathiasKoch commented 5 years ago

Hi.

Is there a way of using this crate for unit testing (either emulated or on real hardware, preferably both) without the use of xargo?

I am using RTFM on a stm32l4 processor, and would very much like to be able to run unit tests in my no_std environment.

ghost commented 4 years ago

Hello there!

Personally, I recommend using the "cargo-xbuild" crate. It offers all of the most used Cargo commands and tends to be a drop-in replacement for Xargo.

Just "cargo install cargo-xbuild" and with it comes "cargo xtest, "cargo xcheck, and "cargo xbuild" among other things.