Cargo Features
[dependencies]
embedded-test = { version = "0.6.0", default-features = false, features = ["panic-handler", "defmt", "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
Optional dependencies
Affects
embedded-test::TestOutcome
… - log
-
prints testcase exit result to log
Enables log
Affects
embedded-test::TestOutcome
… - 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