|
749 | 749 | <test test.type="qa-functional"/> |
750 | 750 | </target> |
751 | 751 |
|
752 | | - <target name="-do-junit" depends="test-init"> |
| 752 | + <target name="-setup-continue-after-failing"> |
| 753 | + <!-- The -do.continue... property is used in unless= context, so it must be defined only if the user property is set to true --> |
| 754 | + <condition property="-do.continue.after.failing.tests"> |
| 755 | + <istrue value="${continue.after.failing.tests}"/> |
| 756 | + </condition> |
| 757 | + </target> |
| 758 | + |
| 759 | + <target name="-do-junit" depends="test-init,-setup-continue-after-failing"> |
753 | 760 | <property name="test.jms.flags" value=""/> |
754 | 761 | <macrodef name="junit-impl"> |
755 | 762 | <attribute name="test.type"/> |
|
770 | 777 | <formatter type="brief" usefile="false"/> |
771 | 778 | <formatter type="xml"/> |
772 | 779 | </junit> |
773 | | - <fail if="tests.failed" unless="continue.after.failing.tests">Some tests failed; see details above.</fail> |
774 | | - </sequential> |
| 780 | + <fail if="tests.failed" unless="-do.continue.after.failing.tests">Some tests failed; see details above.</fail> |
| 781 | + </sequential> |
775 | 782 | </macrodef> |
776 | 783 | <junit-impl test.type="${run.test.type}" disable.apple.ui="${disable.apple.ui}"/> |
777 | 784 | </target> |
778 | 785 |
|
779 | | - <target name="-do-testng" depends="test-init"> |
| 786 | + <target name="-do-testng" depends="test-init,-setup-continue-after-failing"> |
780 | 787 | <macrodef name="testng-impl"> |
781 | 788 | <attribute name="test.type"/> |
782 | 789 | <attribute name="disable.apple.ui" default="false"/> |
|
799 | 806 | <!-- needed to have tests NOT to steal focus when running, works in latest apple jdk update only.--> |
800 | 807 | <sysproperty key="apple.awt.UIElement" value="@{disable.apple.ui}"/> |
801 | 808 | </testng> |
802 | | - <fail if="tests.failed" unless="continue.after.failing.tests">Some tests failed; see details above.</fail> |
| 809 | + <fail if="tests.failed" unless="-do.continue.after.failing.tests">Some tests failed; see details above.</fail> |
803 | 810 | </sequential> |
804 | 811 | </macrodef> |
805 | 812 | <testng-impl test.type="${run.test.type}" disable.apple.ui="${disable.apple.ui}"/> |
|
854 | 861 | <test-single test.type="${test.type}"/> |
855 | 862 | </target> |
856 | 863 |
|
857 | | - <target name="-do-junit-single" depends="test-init"> |
| 864 | + <target name="-do-junit-single" depends="test-init,-setup-continue-after-failing"> |
858 | 865 | <macrodef name="junit-impl"> |
859 | 866 | <attribute name="test.type"/> |
860 | 867 | <sequential> |
|
872 | 879 | <formatter type="brief" usefile="false"/> |
873 | 880 | <formatter type="xml"/> |
874 | 881 | </junit> |
875 | | - <fail if="tests.failed" unless="continue.after.failing.tests">Some tests failed; see details above.</fail> |
| 882 | + <fail if="tests.failed" unless="-do.continue.after.failing.tests">Some tests failed; see details above.</fail> |
876 | 883 | </sequential> |
877 | 884 | </macrodef> |
878 | 885 | <junit-impl test.type="${test.type}" /> |
879 | 886 | </target> |
880 | 887 |
|
881 | | - <target name="-do-testng-single" depends="test-init"> |
| 888 | + <target name="-do-testng-single" depends="test-init,-setup-continue-after-failing"> |
882 | 889 | <macrodef name="testng-impl"> |
883 | 890 | <attribute name="test.type"/> |
884 | 891 | <sequential> |
|
901 | 908 | <!-- needed to have tests NOT to steal focus when running, works in latest apple jdk update only.--> |
902 | 909 | <sysproperty key="apple.awt.UIElement" value="@{disable.apple.ui}"/> |
903 | 910 | </testng> |
904 | | - <fail if="tests.failed" unless="continue.after.failing.tests">Some tests failed; see details above.</fail> |
| 911 | + <fail if="tests.failed" unless="-do.continue.after.failing.tests">Some tests failed; see details above.</fail> |
905 | 912 | </sequential> |
906 | 913 | </macrodef> |
907 | 914 | <testng-impl test.type="${test.type}"/> |
908 | 915 | </target> |
909 | 916 |
|
910 | | - <target name="-do-testng-single-suite" depends="test-init"> |
| 917 | + <target name="-do-testng-single-suite" depends="test-init,-setup-continue-after-failing"> |
911 | 918 | <macrodef name="testng-impl"> |
912 | 919 | <attribute name="test.type"/> |
913 | 920 | <sequential> |
|
930 | 937 | <!-- needed to have tests NOT to steal focus when running, works in latest apple jdk update only.--> |
931 | 938 | <sysproperty key="apple.awt.UIElement" value="@{disable.apple.ui}"/> |
932 | 939 | </testng> |
933 | | - <fail if="tests.failed" unless="continue.after.failing.tests">Some tests failed; see details above.</fail> |
| 940 | + <fail if="tests.failed" unless="-do.continue.after.failing.tests">Some tests failed; see details above.</fail> |
934 | 941 | </sequential> |
935 | 942 | </macrodef> |
936 | 943 | <testng-impl test.type="${test.type}"/> |
|
1022 | 1029 | <testng-impl test.type="${test.type}"/> |
1023 | 1030 | </target> |
1024 | 1031 |
|
1025 | | - <target name="-do-testng-debug-single-suite" depends="test-init"> |
| 1032 | + <target name="-do-testng-debug-single-suite" depends="test-init,-setup-continue-after-failing"> |
1026 | 1033 | <macrodef name="testng-impl"> |
1027 | 1034 | <attribute name="test.type"/> |
1028 | 1035 | <sequential> |
|
1046 | 1053 | <!-- needed to have tests NOT to steal focus when running, works in latest apple jdk update only.--> |
1047 | 1054 | <sysproperty key="apple.awt.UIElement" value="@{disable.apple.ui}"/> |
1048 | 1055 | </testng> |
1049 | | - <fail if="tests.failed" unless="continue.after.failing.tests">Some tests failed; see details above.</fail> |
| 1056 | + <fail if="tests.failed" unless="-do.continue.after.failing.tests">Some tests failed; see details above.</fail> |
1050 | 1057 | </sequential> |
1051 | 1058 | </macrodef> |
1052 | 1059 | <testng-impl test.type="${test.type}"/> |
|
1094 | 1101 | <test-method test.type="${test.type}"/> |
1095 | 1102 | </target> |
1096 | 1103 |
|
1097 | | - <target name="-do-junit-testmethod" depends="test-init"> |
| 1104 | + <target name="-do-junit-testmethod" depends="test-init,-setup-continue-after-failing"> |
1098 | 1105 | <macrodef name="junit-impl"> |
1099 | 1106 | <attribute name="test.type"/> |
1100 | 1107 | <sequential> |
|
1109 | 1116 | <formatter type="brief" usefile="false"/> |
1110 | 1117 | <formatter type="xml"/> |
1111 | 1118 | </junit> |
1112 | | - <fail if="tests.failed" unless="continue.after.failing.tests">Some tests failed; see details above.</fail> |
| 1119 | + <fail if="tests.failed" unless="-do.continue.after.failing.tests">Some tests failed; see details above.</fail> |
1113 | 1120 | </sequential> |
1114 | 1121 | </macrodef> |
1115 | 1122 | <junit-impl test.type="${test.type}" /> |
1116 | 1123 | </target> |
1117 | 1124 |
|
1118 | | - <target name="-do-testng-testmethod" depends="test-init"> |
| 1125 | + <target name="-do-testng-testmethod" depends="test-init,-setup-continue-after-failing"> |
1119 | 1126 | <macrodef name="testng-impl"> |
1120 | 1127 | <attribute name="test.type"/> |
1121 | 1128 | <sequential> |
|
1137 | 1144 | <!-- needed to have tests NOT to steal focus when running, works in latest apple jdk update only.--> |
1138 | 1145 | <sysproperty key="apple.awt.UIElement" value="@{disable.apple.ui}"/> |
1139 | 1146 | </testng> |
1140 | | - <fail if="tests.failed" unless="continue.after.failing.tests">Some tests failed; see details above.</fail> |
| 1147 | + <fail if="tests.failed" unless="-do.continue.after.failing.tests">Some tests failed; see details above.</fail> |
1141 | 1148 | </sequential> |
1142 | 1149 | </macrodef> |
1143 | 1150 | <testng-impl test.type="${test.type}"/> |
|
0 commit comments