Skip to content
Back to skills

Embedded Test Knowledge Patch

ASecurity

embedded-test

  • 25 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
developmentrustgo

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill embedded-test-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Embedded Test Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Embedded Test Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-embedded-test-knowledge-patch/badge)](https://www.skillsdirectory.com/skills/nevaberry-embedded-test-knowledge-patch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: embedded-test-knowledge-patch
description: embedded-test
version: "0.7.3"
license: MIT
metadata:
  author: Nevaberry
---


# embedded-test compatibility guidance

Use this skill when upgrading or configuring embedded-test harnesses,
setup and logging, test initialization, executors, or linker and toolchain
compatibility.

## Reference index

| Reference | Topics |
| --- | --- |
| [Harness and linking](references/harness-and-linking.md) | ELF discovery, linker script packaging, unit tests and helpers, `std` linkers |
| [Setup and timeouts](references/setup-and-timeouts.md) | Logging feature changes, global setup, per-test initialization, default timeout |
| [Executors and platforms](references/executors-and-platforms.md) | Embassy executor compatibility, external executor, Xtensa, Ariel OS |
| [Toolchains and dependencies](references/toolchains-and-dependencies.md) | Rust requirements, rust-analyzer, panic handler, `defmt`, dependency defaults |

## Migration changes

### Move global setup to a function

In embedded-test 0.7.0, move global setup from the `setup` macro argument
into a function annotated with `#[embedded_test::setup]`.

```rust
#[embedded_test::setup]
fn setup() {
    rtt_target::rtt_init_log();
}
```

### Account for removed logging features

The `init-rtt` and `init-log` features were removed in 0.6.0.
On that release, configure suite-wide logging with:

```rust
#[embedded_test::tests(setup = rtt_target::rtt_init_log())]
```

The earlier `rtt` feature initialized logging through `rtt-target` in
0.3.0. In 0.4.0 it was renamed to `init-rtt`, and `init-log` was added
to initialize a logging sink.

See [setup and timeouts](references/setup-and-timeouts.md) for these
version-specific setup forms.

### Use a runner with ELF discovery

In 0.7.0, `probe-rs` discovers test cases directly from the ELF file.
Use a runner with ELF discovery when upgrading from a release that retrieved
the test list from the target over semihosting.

### Account for the test-module attribute change

The 0.7.0 release removed the `#[cfg(test)]` attribute from the test module.
It also added unit-test support and allows plain helper functions inside
`#[embedded_test::tests]` modules.

### Check the Rust requirement

The minimum supported Rust version rose to 1.88 in embedded-test 0.7.2.
Stable Rust became supported in 0.2.2, when the crate stopped requiring
`trait_alias`.

### Account for dependency and panic-guidance changes

The `defmt` dependency moved from 0.3.8 to 1 in embedded-test 0.6.1.
Version 0.6.2 dropped `defmt::Display2Format` from the panic-handler guidance.

Version 0.6.2 updated `serde-json-core` to 0.6 and stopped enabling the
default features of `heapless` and `serde-json-core`.

## Test configuration

### Set a suite-wide timeout

Starting in 0.6.0, set the suite's default timeout with:

```rust
#[embedded_test::tests(default_timeout = 10)]
```

The `default_timeout` argument takes a `u32`.

### Override an individual test's initializer

Version 0.7.0 lets an individual test override the suite initializer with:

```rust
#[test(init = my_custom_init)]
```

### Use rust-analyzer's Run Test button

Version 0.7.2 supports the rust-analyzer **Run Test** button.
Register the `rust_analyzer` cfg in your `build.rs`:

```rust
fn main() {
    println!("cargo::rustc-check-cfg=cfg(rust_analyzer)");
}
```

## Harness linking

### Linker script packaging

In 0.7.0, the linker script moved to the `embedded-test-linker-script`
crate, so projects can keep `embedded-test` in `[dev-dependencies]`.

The 0.4.0 linker script preserves harness symbols such as
`EMBEDDED_TEST_VERSION`.

### Configure std builds

Starting in 0.7.3, `std` builds can omit the harness linker script from
their linker configuration.

In 0.7.3, the `std` feature supports macOS and toolchains that use linkers
such as MSVC.

See [harness and linking](references/harness-and-linking.md) for discovery,
test-module support, and linker details.

## Executors and target support

### Embassy executor support

Version 0.7.1 added support for `embassy-executor` 0.10.x through the
`embassy-010` feature:

```toml
[dev-dependencies]
embedded-test = { version = "0.7.1", features = ["embassy-010"] }
```

See [executors and platforms](references/executors-and-platforms.md) for
the executor versions associated with earlier embedded-test releases.

### Supply an external executor

Starting in 0.4.0, enable `external-executor` to supply your own Embassy
executor.

### Configure target support

Version 0.4.0 added the `xtensa-semihosting` feature for Xtensa targets.
Version 0.6.1 added Ariel OS support for on-target and host `std` test runs.

### Built-in panic handler

Version 0.4.0 added the built-in handler through the default-enabled
`panic-handler` feature.

See [toolchains and dependencies](references/toolchains-and-dependencies.md)
for panic-handler guidance, dependency defaults, and Rust tooling details.

Files in this skill

  • SKILL.md4.8 KB
  • coverage.json617 B
  • references/executors-and-platforms.md749 B
  • references/harness-and-linking.md1 KB
  • references/setup-and-timeouts.md958 B
  • references/toolchains-and-dependencies.md897 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.