Lines Matching refs:gtest
741 def gtest(tmp_path): function
763 def test_gtest_start_test_no_suites_detected(gtest): argument
764 process_logs(gtest, [SAMPLE_GTEST_START])
765 assert len(gtest.detected_suite_names) == 0
766 assert gtest.status == TwisterStatus.NONE
769 def test_gtest_start_test(gtest): argument
771 gtest,
779 assert gtest.status == TwisterStatus.NONE
780 assert len(gtest.detected_suite_names) == 1
781 assert gtest.detected_suite_names[0] == "suite_name"
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
789 def test_gtest_pass(gtest): argument
791 gtest,
802 assert gtest.status == TwisterStatus.NONE
803 assert len(gtest.detected_suite_names) == 1
804 assert gtest.detected_suite_names[0] == "suite_name"
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
814 def test_gtest_failed(gtest): argument
816 gtest,
827 assert gtest.status == TwisterStatus.NONE
828 assert len(gtest.detected_suite_names) == 1
829 assert gtest.detected_suite_names[0] == "suite_name"
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
839 def test_gtest_skipped(gtest): argument
841 gtest,
852 assert gtest.status == TwisterStatus.NONE
853 assert len(gtest.detected_suite_names) == 1
854 assert gtest.detected_suite_names[0] == "suite_name"
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
864 def test_gtest_all_pass(gtest): argument
866 gtest,
878 assert gtest.status == TwisterStatus.PASS
879 assert len(gtest.detected_suite_names) == 1
880 assert gtest.detected_suite_names[0] == "suite_name"
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
890 def test_gtest_all_pass_with_variant(gtest): argument
892 gtest,
904 assert gtest.status == "passed"
905 assert len(gtest.detected_suite_names) == 1
906 assert gtest.detected_suite_names[0] == "suite_name"
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"
911 def test_gtest_one_skipped(gtest): argument
913 gtest,
931 assert gtest.status == TwisterStatus.PASS
932 assert len(gtest.detected_suite_names) == 1
933 assert gtest.detected_suite_names[0] == "suite_name"
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
951 def test_gtest_one_fail(gtest): argument
953 gtest,
971 assert gtest.status == TwisterStatus.FAIL
972 assert len(gtest.detected_suite_names) == 1
973 assert gtest.detected_suite_names[0] == "suite_name"
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
986 def test_gtest_one_fail_with_variant(gtest): argument
988 gtest,
1006 assert gtest.status == "failed"
1007 assert len(gtest.detected_suite_names) == 1
1008 assert gtest.detected_suite_names[0] == "suite_name"
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"
1015 def test_gtest_one_fail_with_variant_and_param(gtest): argument
1017 gtest,
1035 assert gtest.status == "failed"
1036 assert len(gtest.detected_suite_names) == 1
1037 assert gtest.detected_suite_names[0] == "suite_name"
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"
1044 def test_gtest_missing_result(gtest): argument
1050 gtest,
1063 def test_gtest_mismatch_result(gtest): argument
1069 gtest,
1082 def test_gtest_repeated_result(gtest): argument
1088 gtest,
1107 def test_gtest_repeated_run(gtest): argument
1113 gtest,