mirror of
https://github.com/meshtastic/python.git
synced 2025-12-28 10:27:54 -05:00
add more info about running smoke tests
This commit is contained in:
14
README.md
14
README.md
@@ -207,7 +207,7 @@ pytest -m unit
|
||||
pytest -m int
|
||||
```
|
||||
|
||||
* To run the smoke test with only one device connected serially:
|
||||
* To run the smoke test with only one device connected serially (aka smoke1):
|
||||
|
||||
```
|
||||
pytest -m smoke1
|
||||
@@ -216,6 +216,18 @@ pytest -m smoke1
|
||||
CAUTION: Running smoke1 will reset values on the device, including the region to 1 (US).
|
||||
Be sure to hit the reset button on the device after the test is completed.
|
||||
|
||||
* To run the smoke test with only two device connected serially (aka smoke2):
|
||||
|
||||
```
|
||||
pytest -m smoke2
|
||||
```
|
||||
|
||||
* To run the wifi smoke test:
|
||||
|
||||
```
|
||||
pytest -m smokewifi
|
||||
```
|
||||
|
||||
* To run a specific test:
|
||||
|
||||
```
|
||||
|
||||
@@ -19,5 +19,5 @@ def test_smoke2_test():
|
||||
return_value, out = subprocess.getstatusoutput('meshtastic --test')
|
||||
assert re.search(r'Writing serial debugging', out, re.MULTILINE)
|
||||
assert re.search(r'Ports opened', out, re.MULTILINE)
|
||||
assert re.search(r'Running 50 tests', out, re.MULTILINE)
|
||||
assert re.search(r'Running 5 tests', out, re.MULTILINE)
|
||||
assert return_value == 0
|
||||
|
||||
Reference in New Issue
Block a user