-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot run cargo test
using fresh template
#63
Comments
Hi, thanks for the issue! Testing on |
Hi! I understand that testing on device is very specific, however I guess my question was more: why is the Is there a specific thing that is done in the template which prevents the use of |
I would guess it's because there's no |
Library crates can be compiled for any arch (provided they don't contain any target-specific asm), this isn't generally the case for binary crates, which this template produces. In general, I see folks splitting their code into lib and bin, and adding testing in the lib crate, like you did for yours above. |
I would like to join in this discussion as well. On the flip side, I'm getting an issue with esp-hal-common and needs upstream fixing to make it work. |
Hi,
This may be self-evident, and if it is I apologise. It appears that one cannot use
cargo test
using a freshcargo generate
d project based on this template:Not sure if this is expected, intended, or unfixable.
The text was updated successfully, but these errors were encountered: