diff --git a/Makefile b/Makefile index 0e3428b..4e3177a 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ -# unit test +# only run the fast unit tests test: - pytest + pytest -m unit # local install install: diff --git a/meshtastic/tests/test_stream_interface.py b/meshtastic/tests/test_stream_interface.py index 57eb16f..0995390 100644 --- a/meshtastic/tests/test_stream_interface.py +++ b/meshtastic/tests/test_stream_interface.py @@ -17,7 +17,8 @@ def test_StreamInterface(): assert pytest_wrapped_e.type == Exception -@pytest.mark.unit +# Note: This takes a bit, so moving from unit to slow +@pytest.mark.unitslow def test_StreamInterface_with_noProto(caplog, reset_globals): """Test that we can instantiate a StreamInterface based on nonProto and we can read/write bytes from a mocked stream @@ -33,7 +34,8 @@ def test_StreamInterface_with_noProto(caplog, reset_globals): assert data == test_data -@pytest.mark.unit +# Note: This takes a bit, so moving from unit to slow +@pytest.mark.unitslow def test_sendToRadioImpl(caplog, reset_globals): """Test _sendToRadioImpl()""" test_data = b'hello' diff --git a/pytest.ini b/pytest.ini index bb6fbde..31b01db 100644 --- a/pytest.ini +++ b/pytest.ini @@ -4,6 +4,7 @@ addopts = -m "not int and not smoke1 and not smoke2 and not smokewifi and not ex markers = unit: marks tests as unit tests + unitslow: marks slow unit tests int: marks tests as integration tests smoke1: runs smoke tests on a single device connected via USB smoke2: runs smoke tests on a two devices connected via USB