Skip to content

Request: Add sample unit tests to the project #10

@DeflateAwning

Description

@DeflateAwning

The way I've been adding unit tests (for data-in-data-out functions) to my projects is by putting the data functions and their tests in a separate crate in a cargo workspace. Not sure if that's the best practice, but it seems to work well enough.

Would be nice if there was an example of what the community deams the "best" way to manage such tests in this template by default, with a basic test placeholder, and especially with the tests running in CI.

I'm not talking about the types of functions/tests that require the embedded build target. I'm more talking about tests related to data transfer objects, logical functions, etc. where the function has no embedded dependencies and runs just the same on a Linux host as a Cortex embedded system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions