Searched refs:pytest (Results 1 – 25 of 110) sorted by relevance
12345
/Zephyr-latest/scripts/pylib/pytest-twister-harness/src/twister_harness/ |
D | fixtures.py | 9 import pytest 22 @pytest.fixture(scope='session') 23 def twister_harness_config(request: pytest.FixtureRequest) -> TwisterHarnessConfig: 29 @pytest.fixture(scope='session') 48 @pytest.fixture(scope=determine_scope) 49 def unlaunched_dut(request: pytest.FixtureRequest, device_object: DeviceAdapter) -> Generator[Devic… 57 @pytest.fixture(scope=determine_scope) 58 def dut(request: pytest.FixtureRequest, device_object: DeviceAdapter) -> Generator[DeviceAdapter, N… 68 @pytest.fixture(scope=determine_scope) 77 pytest.fail('Prompt not found') [all …]
|
/Zephyr-latest/tests/drivers/can/host/pytest/ |
D | test_can.py | 10 import pytest 20 @pytest.mark.parametrize('msg', [ 21 pytest.param( 26 pytest.param( 32 pytest.param( 38 pytest.param( 45 pytest.param( 65 pytest.fail('no message received') 69 pytest.fail(f'rx message "{rx}" not equal to tx message "{tx}"') 76 pytest.skip('CAN FD not supported by DUT') [all …]
|
D | conftest.py | 12 import pytest 24 @pytest.fixture(name='context', scope='session') 38 @pytest.fixture(name='chosen', scope='module') 51 pytest.fail('zephyr,canbus chosen device not found or not ready') 54 @pytest.fixture 62 @pytest.fixture
|
/Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/ |
D | conftest.py | 11 import pytest 17 @pytest.fixture 23 @pytest.fixture 27 pytest.fail('Environmental variable ZEPHYR_BASE has to be set.') 32 @pytest.fixture 39 @pytest.fixture 44 @pytest.fixture
|
/Zephyr-latest/scripts/pylib/pytest-twister-harness/ |
D | README.rst | 9 separately by pip. When Twister uses this plugin for pytest tests, it updates 10 :envvar:`PYTHONPATH` variable, and then extends pytest command by 24 ./scripts/twister -p native_sim -p qemu_x86 -T samples/subsys/testsuite/pytest/shell 27 …0dk/nrf52840 --device-testing --device-serial /dev/ttyACM0 -T samples/subsys/testsuite/pytest/shell 29 or build shell application by west and call pytest directly: 33 export PYTHONPATH=${ZEPHYR_BASE}/scripts/pylib/pytest-twister-harness/src:${PYTHONPATH} 35 cd ${ZEPHYR_BASE}/samples/subsys/testsuite/pytest/shell 39 pytest --twister-harness --device-type=native --build-dir=build -p twister_harness.plugin 43 pytest --twister-harness --device-type=qemu --build-dir=build -p twister_harness.plugin 47 …pytest --twister-harness --device-type=hardware --device-serial=/dev/ttyACM0 --build-dir=build -p …
|
/Zephyr-latest/doc/develop/test/ |
D | pytest.rst | 3 Integration with pytest test framework 6 *Please mind that integration of twister with pytest is still work in progress. Not every platform 7 type is supported in pytest (yet). If you find any issue with the integration or have an idea for 14 support complex functional testing for applications and libraries”* (`<https://docs.pytest.org/en/7… 15 Python is known for its free libraries and ease of using it for scripting. In addition, pytest 17 A pytest plugin ``pytest-twister-harness`` was introduced to provide an integration between pytest 18 and twister, allowing Zephyr’s community to utilize pytest functionality with keeping twister as 24 By default, there is nothing to be done to enable pytest support in twister. The plugin is 26 ``PYTHONPATH`` with path to this plugin, and then during pytest call, it appends the command with 32 In the case of ``harness: pytest``, most of twister workflow (test suites discovery, [all …]
|
/Zephyr-latest/tests/subsys/debug/gdbstub/pytest/ |
D | conftest.py | 7 import pytest 16 @pytest.fixture() 21 @pytest.fixture() 26 @pytest.fixture()
|
/Zephyr-latest/tests/kernel/timer/timer_behavior/pytest/ |
D | conftest.py | 7 import pytest 16 @pytest.fixture() 21 @pytest.fixture() 26 @pytest.fixture() 41 @pytest.fixture()
|
/Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/device/ |
D | binary_adapter_test.py | 13 import pytest 24 @pytest.fixture 29 @pytest.fixture(name='device') 40 @pytest.fixture(name='launched_device') 74 with pytest.raises(TwisterHarnessTimeoutException, match='Read from device timeout occurred'): 87 with pytest.raises(TwisterHarnessException, match=exception_msg): 96 with pytest.raises(TwisterHarnessException, match='Exception message'): 105 with pytest.raises(TwisterHarnessException, match='fake_file.txt'): 114 with pytest.raises(TwisterHarnessException, match='Raised other exception'): 119 caplog: pytest.LogCaptureFixture, launched_device: NativeSimulatorAdapter [all …]
|
/Zephyr-latest/scripts/tests/twister/ |
D | conftest.py | 10 import pytest 26 @pytest.fixture(name='test_data') 32 @pytest.fixture(name='zephyr_base') 36 @pytest.fixture(name='testsuites_dir') 41 @pytest.fixture(name='class_env') 54 @pytest.fixture(name='class_testplan') 65 @pytest.fixture(name='all_testsuites_dict') 74 @pytest.fixture(name='platforms_list') 84 @pytest.fixture
|
D | test_twister.py | 13 import pytest 27 with pytest.raises(FileNotFoundError): 31 @pytest.mark.parametrize("filename, schema", 43 @pytest.mark.parametrize("filename, schema", 50 with pytest.raises(Exception) as exception: 101 with pytest.raises(ConfigurationError) as exception:
|
D | test_cmakecache.py | 10 import pytest 36 @pytest.mark.parametrize( 42 with pytest.raises(expected_bool) if \ 114 @pytest.mark.parametrize( 136 with pytest.raises(type(expected)) if \ 164 @pytest.mark.parametrize( 228 @pytest.mark.parametrize( 239 with pytest.raises(expected) if \ 271 with pytest.raises(TypeError):
|
D | test_errors.py | 10 import pytest 24 with pytest.raises(ConfigurationError, match=expected_err): 34 with pytest.raises(StatusAttributeError, match=expected_err):
|
D | test_quarantine.py | 11 import pytest 55 @pytest.mark.parametrize( 75 with pytest.raises(expected_exception): 161 @pytest.mark.parametrize( 169 with pytest.raises(expected): 220 @pytest.mark.parametrize(
|
D | test_testinstance.py | 13 import pytest 37 @pytest.mark.parametrize( 122 @pytest.mark.parametrize( 163 with pytest.raises(BuildError): 193 @pytest.mark.parametrize("filter_expr, expected_stages", TESTDATA_PART_3) 200 @pytest.fixture(name='testinstance') 222 @pytest.mark.parametrize('detailed_test_id', TESTDATA_1) 239 @pytest.mark.parametrize('testinstance', [{'testsuite_kind': 'sample'}], indirect=True) 270 @pytest.mark.parametrize('testinstance', [{'testsuite_kind': 'sample'}], indirect=True) 306 @pytest.mark.parametrize('testinstance', [{'testsuite_kind': 'sample'}], indirect=True) [all …]
|
/Zephyr-latest/scripts/west_commands/tests/ |
D | test_mdb.py | 10 import pytest 174 @pytest.fixture 178 @pytest.fixture 183 @pytest.fixture 200 @pytest.mark.parametrize('test_case', TEST_NSIM_FLASH_CASES) 208 @pytest.mark.parametrize('test_case', TEST_NSIM_DEBUG_CASES) 216 @pytest.mark.parametrize('test_case', TEST_NSIM_MULTICORE_CASES) 229 @pytest.mark.parametrize('test_case', TEST_HW_FLASH_CASES_NO_HOSTLINK) 237 @pytest.mark.parametrize('test_case', TEST_HW_FLASH_CASES_HOSTLINK) 245 @pytest.mark.parametrize('test_case', TEST_HW_FLASH_CASES_ERR) [all …]
|
/Zephyr-latest/scripts/tests/twister_blackbox/test_data/tests/pytest/pytest/ |
D | conftest.py | 5 import pytest 20 @pytest.fixture() 26 @pytest.fixture()
|
D | test_sample.py | 6 import pytest 11 @pytest.fixture(autouse=True) 42 pytest.main()
|
/Zephyr-latest/samples/subsys/testsuite/pytest/basic/pytest/ |
D | conftest.py | 5 import pytest 20 @pytest.fixture() 26 @pytest.fixture()
|
D | test_sample.py | 6 import pytest 11 @pytest.fixture(autouse=True) 42 pytest.main()
|
/Zephyr-latest/tests/net/socket/tls_configurations/pytest/ |
D | conftest.py | 5 import pytest 13 @pytest.fixture() 18 @pytest.fixture()
|
/Zephyr-latest/tests/net/lib/lwm2m/interop/pytest/ |
D | conftest.py | 17 import pytest 55 @pytest.fixture(scope='session') 66 pytest.skip('Leshan server not available') 68 @pytest.fixture(scope='session') 79 pytest.skip('Leshan Bootstrap server not available') 81 @pytest.fixture(scope='module') 92 pytest.skip('CoAPthon3 package not installed') 96 @pytest.fixture(scope='module') 126 @pytest.fixture(scope='module') 171 @pytest.fixture(scope='module') [all …]
|
/Zephyr-latest/scripts/tests/twister_blackbox/ |
D | conftest.py | 12 import pytest 32 @pytest.fixture(name='zephyr_base') 37 @pytest.fixture(name='zephyr_test_data') 41 @pytest.fixture(autouse=True) 67 @pytest.fixture(name='out_path', autouse=True)
|
D | test_printouts.py | 12 import pytest 276 @pytest.mark.parametrize( 288 pytest.raises(SystemExit) as sys_exit: 302 @pytest.mark.parametrize( 324 pytest.raises(SystemExit) as sys_exit: 340 @pytest.mark.parametrize( 360 pytest.raises(SystemExit) as sys_exit: 370 @pytest.mark.parametrize( 383 pytest.raises(SystemExit) as sys_exit: 408 @pytest.mark.parametrize( [all …]
|
/Zephyr-latest/samples/subsys/testsuite/pytest/shell/ |
D | README.rst | 4 Execute pytest tests against the Zephyr shell. 9 The sample project illustrates usage of pytest framework integrated with 13 and then calls pytest in subprocess which runs tests from 14 ``pytest/test_shell.py`` file. The first test verifies valid response for 17 is defined in ``pytest-twister-harness`` plugin. More information about plugin 32 $ ./scripts/twister -vv --platform native_sim -T samples/subsys/testsuite/pytest/shell 41 samples/subsys/testsuite/pytest/shell/pytest/test_shell.py::test_shell_print_help 72 samples/subsys/testsuite/pytest/shell/pytest/test_shell.py::test_shell_print_version
|
12345