Skip to content

Commit 1f5138a

Browse files
committed
todo: comms test
1 parent 230cc51 commit 1f5138a

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

tests/test_comms.py

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
'''
2+
What to test for comms module?
3+
4+
get_connected_nordic_boards
5+
* both device and hwid need to be emulated
6+
* macos doesn't provide hwid
7+
* empty list
8+
* some non-nordic comports
9+
* some nordic comports on mac, linux and windows ()
10+
* test both Thingy91x and JLink based kits
11+
12+
select_jlink
13+
* mock cases for no, one and multiple jlinks
14+
* figure out how to test with inquirer (can we emulate prompt answers?)
15+
16+
select_device_by_serial
17+
similar to the above
18+
19+
select_device
20+
* rtt enabled with and without snr
21+
* port given
22+
* serial number given
23+
* list all
24+
* no list-all, select from nordic devices: zero, one, two devices
25+
26+
test with emulated serial device
27+
* _init_serial
28+
* close
29+
* expect_response
30+
* reset_device: expect error
31+
* write_line
32+
* _readline_serial: returns stripped string, not bytes
33+
* _write_serial: blank forward
34+
35+
test with emulated rtt device
36+
* _init_rtt
37+
* close
38+
* expect_response
39+
* reset_device
40+
* _readline_rtt: internal line buffering
41+
* _write_rtt: chopping up of data
42+
43+
'''

0 commit comments

Comments
 (0)