File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed
Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -54,4 +54,5 @@ overflow-checks = false # <-
5454# [patch.crates-io]
5555# defmt = { git = "https://github.com/knurling-rs/defmt", rev = "use defmt version reported by `probe-run --version`" }
5656# defmt-rtt = { git = "https://github.com/knurling-rs/defmt", rev = "use defmt version reported by `probe-run --version`" }
57+ # defmt-test = { git = "https://github.com/knurling-rs/defmt", rev = "use defmt version reported by `probe-run --version`" }
5758# panic-probe = { git = "https://github.com/knurling-rs/defmt", rev = "use defmt version reported by `probe-run --version`" }
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ cortex-m = "0.6.3"
1616cortex-m-rt = " 0.6.12"
1717defmt = " 0.1.0"
1818defmt-rtt = " 0.1.0"
19+ defmt-test = " 0.1.0"
1920panic-probe = { version = " 0.1.0" , features = [" print-defmt" ] }
2021
2122[features ]
Original file line number Diff line number Diff line change 44use cortex_m_rt:: entry;
55use { { crate_name} } as _; // memory layout + panic handler
66
7- #[ entry]
8- fn main ( ) -> ! {
9- assert ! ( false , "TODO: Write actual tests" ) ;
7+ // See https://crates.io/crates/defmt-test/0.1.0 for more documentation
8+ #[ defmt_test:: tests]
9+ mod tests {
10+ #[ test]
11+ fn assert_true ( ) {
12+ assert ! ( true )
13+ }
1014
11- { { crate_name} } :: exit ( ) ;
15+ #[ test]
16+ fn assert_false ( ) {
17+ assert ! ( false , "TODO: write actual tests" )
18+ }
1219}
You can’t perform that action at this time.
0 commit comments