You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you think the best way to do unit tests is through making a test program that targets a cortex-m device running through QEMU? I'm honestly not sure how unit tests work with embedded software
I don't think that's necessary. You can simulate all the inputs an outputs to functions if you need to. Like, for setting up the initial stack for a task, you could pass a known pointer in, and then have it do it's thing, and then inspect the memory that was modified by that function to make sure it looks right. Stuff like that. I think for the most part, you don't need to actually run on the hardware to do testing. I think both kinds of testing are useful for different things though.
We should write some unit tests to make sure things work how we expect them to. There's a lot of builtin support in rust for this.
The text was updated successfully, but these errors were encountered: