Skip to content

Commit

Permalink
Remove rtt init features, add new attribute to setup global logger
Browse files Browse the repository at this point in the history
  • Loading branch information
t-moe committed Dec 2, 2024
1 parent 47fa427 commit 0c54f6c
Show file tree
Hide file tree
Showing 24 changed files with 293 additions and 362 deletions.
3 changes: 3 additions & 0 deletions .idea/embedded-test.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions .idea/runConfigurations/Run_bin_target_stm32f767.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .idea/runConfigurations/Test_esp32c6_defmt.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .idea/runConfigurations/Test_esp32c6_log.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .idea/runConfigurations/Test_stm32f767_defmt.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .idea/runConfigurations/Test_stm32f767_log.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

- `#[tests(default_timeout = <u32>)]` to configure a suite-wide default timeout.
- `#[tests(setup = <expr>)]` to configure a suite-wide (log) setup function (e.g. `rtt_target::rtt_init_log()`).

## [0.5.0]
### Removed

### Added
- Breaking: Removed Features `init-log` and `init-rtt`.

## [0.5.0]

### Changed

- Breaking: Bump embassy-excecutor to 0.6.1

### Fixed

### Removed

## [0.4.0]

### Added
Expand Down
49 changes: 2 additions & 47 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 2 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "embedded-test"
version = "0.5.1"
version = "0.6.0"
edition = "2021"
repository = "https://github.com/probe-rs/embedded-test"
license = "MIT OR Apache-2.0"
Expand All @@ -10,14 +10,12 @@ categories = ["embedded", "no-std", "development-tools::testing"]

[dependencies]
semihosting = { version = "0.1.7", features = ["args"] }
embedded-test-macros = { version = "0.5.1", path = "./macros" }
embedded-test-macros = { version = "0.6.0", path = "./macros" }
serde = { version = "1.0.193", default-features = false, features = ["derive"] }
serde-json-core = { version = "0.5.1" }
heapless = "0.8.0"

# Optional dependencies
rtt-target = { version = "0.5.0", optional = true }
rtt-log = { version = "0.4.0", optional = true }
defmt = { version = "0.3.8", optional = true }
log = { version = "0.4.20", optional = true }
embassy-executor = { version = "0.6.1", optional = true, default-features = false }
Expand All @@ -35,12 +33,6 @@ defmt = ["dep:defmt"]
# prints testcase exit result to log
log = ["dep:log"]

# calls `rtt_target::rtt_init_print!()` before starting any tests
init-rtt = ["dep:rtt-target"]

# calls `rtt_log::init();` before starting any tests
init-log = ["dep:rtt-log"]

# 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` feature
embassy = [
Expand Down
Loading

0 comments on commit 0c54f6c

Please sign in to comment.