avr-hal icon indicating copy to clipboard operation
avr-hal copied to clipboard

[Question] Unit Testing

Open roboteng opened this issue 2 years ago • 2 comments

I'm not sure where to post this, but I think it could be helpful here. I am new to rust, so I am not 100% proficient with it, but I have not found a way to do unit testing. I'd totally be willing to write up some documentation once I get it working. I haven't found any references to testing within this repo, nor within the wider rust community.

Any help would be appreciated, and I'd love to make a PR for this repo or the template one if I can figure it out.

roboteng avatar Jul 27 '22 02:07 roboteng

I can do a bit of self-advertisement here: https://github.com/Patryk27/avr-tester/ 🙂

It's not as straightforward as cargo test, but it's very close!

Patryk27 avatar Jul 31 '22 16:07 Patryk27

you can use qemu, it works https://github.com/Rahix/avr-hal/discussions/280 it works without no real hardware, yet will have timer issue https://github.com/Rahix/avr-hal/pull/257

djdisodo avatar Aug 05 '22 21:08 djdisodo