Lines Matching +full:instance +full:- +full:id
4 # SPDX-License-Identifier: Apache-2.0
48 …+ "[{state}] {suite}.{test}, where GetParam() = 8-byte object <0B-00 00-00 00-9A 80-F7> (0 ms tota…
54 "[00:00:00.000,000] [0m<inf> label: [----------] Global test environment tear-down[0m"
168 "match id",
202 mock_testsuite = mock.Mock(id="id", testcases=[])
209 instance = TestInstance(
212 instance.testsuite.harness_config = {
219 robot_harness.configure(instance)
222 assert robot_harness.instance == instance
233 mock_testsuite = mock.Mock(id="id", testcases=[])
240 instance = TestInstance(
245 handler.instance = instance
246 handler.id = "test_case_1"
252 tc = instance.get_case_or_create("test_case_1")
255 assert instance.status == TwisterStatus.PASS
283 mock_testsuite = mock.Mock(id="id", testcases=[mock.Mock()])
290 instance = TestInstance(
293 instance.build_dir = "build_dir"
300 robot.instance = instance
317 assert instance.status == expected_status
337 mock_testsuite = mock.Mock(id="id", testcases=[])
344 instance = TestInstance(
347 instance.testsuite.harness_config = {
354 console.configure(instance)
398 mock_testsuite = mock.Mock(id="id", testcases=[])
405 instance = TestInstance(
410 console.instance = instance
424 console.id = "test_case_1"
426 instance.get_case_or_create("test_case_1")
427 instance.testsuite.id = "test_suite_1"
460 mock_testsuite = mock.Mock(id="id", testcases=[])
467 instance = TestInstance(
472 handler.instance = instance
479 hardware.runner_params = ["--runner-param1", "runner-param2"]
492 pytest_test.configure(instance)
507 assert "--device-type=hardware" in command
509 assert "--device-serial-pty=serial_pty" in command
511 assert "--device-serial=serial" in command
512 assert "--device-serial-baud=115200" in command
513 assert "--runner=runner" in command
514 assert "--runner-params=--runner-param1" in command
515 assert "--runner-params=runner-param2" in command
516 assert "--west-flash-extra-args=args" in command
517 assert "--device-id=123" in command
518 assert "--device-product=product" in command
519 assert "--pre-script=pre_script" in command
520 assert "--post-flash-script=post_flash_script" in command
521 assert "--post-script=post_script" in command
522 assert "--twister-fixture=fixture1:option1" in command
523 assert "--twister-fixture=fixture2" in command
535 assert result_cmd == ["cmd", "-p", "twister_harness.plugin"]
555 id="id", testcases=[], source_dir="source_dir", harness_config={}
565 instance = TestInstance(
568 instance.handler = handler
571 test_obj.configure(instance)
611 "START - test_testcase",
622 "PASS - test_example in 0 seconds",
633 "SKIP - test_example in 0 seconds",
644 "FAIL - test_example in 0 seconds",
655 "START - test_testcase",
666 "START - test_testcase",
677 "START - test_testcase",
691 …ids=["testsuite", "testcase", "pass", "skip", "failed", "ztest pass", "ztest pass short id", "ztes…
704 mock_testsuite = mock.Mock(id="dummy.test_id", testcases=[])
714 instance = TestInstance(
719 test_obj.configure(instance)
720 test_obj.id = "dummy.test_id"
735 assert test_obj.instance.testcases[0].status == exp_status
737 assert test_obj.instance.testcases[1].status == exp_status
748 mock_testsuite.id = "id"
754 instance = TestInstance(
759 harness.configure(instance)
782 assert gtest.instance.get_case_by_name("id.suite_name.test_name") is not None
784 gtest.instance.get_case_by_name("id.suite_name.test_name").status
806 gtest.instance.get_case_by_name("id.suite_name.test_name") != TwisterStatus.NONE
809 gtest.instance.get_case_by_name("id.suite_name.test_name").status
831 gtest.instance.get_case_by_name("id.suite_name.test_name") != TwisterStatus.NONE
834 gtest.instance.get_case_by_name("id.suite_name.test_name").status
856 gtest.instance.get_case_by_name("id.suite_name.test_name") != TwisterStatus.NONE
859 gtest.instance.get_case_by_name("id.suite_name.test_name").status
882 gtest.instance.get_case_by_name("id.suite_name.test_name") != TwisterStatus.NONE
885 gtest.instance.get_case_by_name("id.suite_name.test_name").status
907 assert gtest.instance.get_case_by_name("id.suite_name.test_name") is not None
908 assert gtest.instance.get_case_by_name("id.suite_name.test_name").status == "passed"
935 gtest.instance.get_case_by_name("id.suite_name.test_name") != TwisterStatus.NONE
938 gtest.instance.get_case_by_name("id.suite_name.test_name").status
942 gtest.instance.get_case_by_name("id.suite_name.test_name1")
946 gtest.instance.get_case_by_name("id.suite_name.test_name1").status
974 assert gtest.instance.get_case_by_name("id.suite_name.test0") != TwisterStatus.NONE
976 gtest.instance.get_case_by_name("id.suite_name.test0").status
979 assert gtest.instance.get_case_by_name("id.suite_name.test1") != TwisterStatus.NONE
981 gtest.instance.get_case_by_name("id.suite_name.test1").status
1009 assert gtest.instance.get_case_by_name("id.suite_name.test0") is not None
1010 assert gtest.instance.get_case_by_name("id.suite_name.test0").status == "passed"
1011 assert gtest.instance.get_case_by_name("id.suite_name.test1") is not None
1012 assert gtest.instance.get_case_by_name("id.suite_name.test1").status == "failed"
1038 assert gtest.instance.get_case_by_name("id.suite_name.test0") is not None
1039 assert gtest.instance.get_case_by_name("id.suite_name.test0").status == "passed"
1040 assert gtest.instance.get_case_by_name("id.suite_name.test1") is not None
1041 assert gtest.instance.get_case_by_name("id.suite_name.test1").status == "failed"
1047 match=r"gTest error, id.suite_name.test0 didn't finish",
1066 match=r"gTest error, mismatched tests. Expected id.suite_name.test0 but got None",
1085 … match=r"gTest error, mismatched tests. Expected id.suite_name.test1 but got id.suite_name.test0",
1110 match=r"gTest error, id.suite_name.test0 running twice",
1138 harness.instance = mocked_instance