Lines Matching +full:pytest +full:- +full:twister +full:- +full:harness
5 # SPDX-License-Identifier: Apache-2.0
12 import pytest
25 ['--short-build-path', '-k'],
26 '--short-build-path requires Ninja to be enabled'
32 ['--device-serial-pty', 'dummy'],
33 '--device-serial-pty is not supported on Windows OS'
39 ['--west-runner=dummy'],
40 'west-runner requires west-flash to be enabled'
46 ['--west-flash=\"--board-id=dummy\"'],
47 'west-flash requires device-testing to be enabled'
56 ['--enable-valgrind'],
64 '--device-testing',
65 '--device-serial',
68 'When --device-testing is used with --device-serial' \
69 ' or --device-serial-pty, exactly one platform must' \
77 '--device-testing',
78 '--device-serial',
80 '--platform',
82 '--platform',
85 'When --device-testing is used with --device-serial' \
86 ' or --device-serial-pty, exactly one platform must' \
94 ['--device-flash-with-test'],
95 '--device-flash-with-test requires --device_testing'
101 ['--shuffle-tests'],
102 '--shuffle-tests requires --subset'
108 ['--shuffle-tests-seed', '0'],
109 '--shuffle-tests-seed requires --shuffle-tests'
117 ' Use -- to delineate extra arguments for test binary' \
118 ' or pass -h for help.'
125 'By default Twister should work without pytest-twister-harness' \
127 ' `pip uninstall pytest-twister-harness` and' \
128 ' `git clean -dxf scripts/pylib/pytest-twister-harness`.'
133 @pytest.mark.parametrize(
138 'device-serial-pty on Windows',
140 'west-flash without device-testing',
145 'shuffle-tests without subset',
146 'shuffle-tests-seed without shuffle-tests',
148 'pytest-twister-harness installed'
169 with mock.patch('sys.argv', ['twister'] + args):
184 with pytest.raises(SystemExit) as exit_info:
194 args = ['--size', 'dummy.elf']
196 with mock.patch('sys.argv', ['twister'] + args):
206 with pytest.raises(SystemExit) as exit_info:
216 args = ['--allow-installed-plugin']
218 with mock.patch('sys.argv', ['twister'] + args):
225 ' pytest-twister-harness plugin.' in ' '.join(caplog.text.split())
229 (['--enable-size-report']),
230 (['--compare-report', 'dummy']),
234 @pytest.mark.parametrize(
240 args = ['--coverage', '--platform', 'dummy_platform'] + \
241 additional_args + ['--', 'dummy_extra_1', 'dummy_extra_2']
243 with mock.patch('sys.argv', ['twister'] + args):
306 @pytest.mark.parametrize(
411 @pytest.mark.parametrize(
479 b'somedummy\x1B[123-@d1770',
500 @pytest.mark.parametrize(
533 pytest.raises(Exception) \
564 @pytest.mark.parametrize(
591 pytest.raises(SystemExit) \