Cargo Features
[dependencies]
embedded-test = { version = "0.5.0", default-features = false, features = ["panic-handler", "defmt", "log", "init-rtt", "init-log", "embassy", "external-executor", "xtensa-semihosting"] }
- default = panic-handler
-
The
panic-handler
feature is set by default wheneverembedded-test
is added without
somewhere in the dependency tree.default-features = false - panic-handler default
-
defines a panic-handler which will invoke
semihosting::process::abort()
on panic - defmt
-
prints testcase exit result to defmt
Enables defmt
Affects
embedded-test::TestOutcome
… - log
-
prints testcase exit result to log
Enables log
Affects
embedded-test::TestOutcome
… - init-rtt
-
calls
rtt_target::rtt_init_print!()
before starting any testsEnables rtt-target ^0.5.0
Optional dependencies
- init-log
-
calls
rtt_log::init();
before starting any testsEnables rtt-log ^0.3.0
- embassy
-
Enables async test and init functions using embassy-executor. Note: You need to enable at least one executor feature on embassy unless you are using the
external-executor
featureEnables embassy-executor, embassy of embedded-test-macros
- external-executor
-
you will use your own executor by setting it via the
tasks
macro, e.g.#[embedded_test::tests(executor = esp_hal::embassy::executor::thread::Executor::new())]
Enables external-executor of embedded-test-macros
- xtensa-semihosting
-
enables the xtensa-specific semihosting implementation
Enables openocd-semihosting of semihosting