Skip to content

allow override of the init function on a per-test basis #33

Open
@t-moe

Description

@t-moe

Something like #[test(init=custom_init_123)]

@SergioGasquez wrote:

By the way, we are currently using this Context approach and the init function just calls the Context::init (https://github.com/esp-rs/esp-hal/blob/main/hil-test/tests/uart.rs#L61-L64)
Is there a way to have init method per test cases, eg: test_1 uses init_1 and test_2 uses init_2?
.... my idea would be to have 2 init functions. And there would be more than two tests, some would use one init fuction, some would use the other

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions