You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Handle failTaskOnFailedTests option - Azure Test Plan (#20712)
* Gradle - do not fail here if test fails, we fail from publish test results
* Maven - do not fail due to test fail here, we do that from publish test results
* Test task should fail on test failures by default.
* Gen
* default value to be true.
* added comment
* documentation link
* send back error through call back function.
Copy file name to clipboardExpand all lines: Tasks/AzureTestPlanV0/Invokers/maveninvoker.ts
+4-1
Original file line number
Diff line number
Diff line change
@@ -33,10 +33,13 @@ export async function executeMavenTests(testsToBeExecuted: string[], pomFilePath
33
33
args.push(pomFilePath);
34
34
}
35
35
36
+
//for returning success exit code incase of test failure and later we detect test failure from PTR command, documentation: https://maven.apache.org/surefire/maven-failsafe-plugin/verify-mojo.html, https://maven.apache.org/archives/maven-1.x/plugins/test/announcements/announcement-1.8.txt
37
+
args.push('-Dmaven.test.failure.ignore=true');
38
+
36
39
tl.debug("Executing java maven tests with executable : "+executable);
37
40
tl.debug("Executing java maven tests with args :"+args);
Copy file name to clipboardExpand all lines: _generated/AzureTestPlanV0/Invokers/maveninvoker.ts
+4-1
Original file line number
Diff line number
Diff line change
@@ -33,10 +33,13 @@ export async function executeMavenTests(testsToBeExecuted: string[], pomFilePath
33
33
args.push(pomFilePath);
34
34
}
35
35
36
+
//for returning success exit code incase of test failure and later we detect test failure from PTR command, documentation: https://maven.apache.org/surefire/maven-failsafe-plugin/verify-mojo.html, https://maven.apache.org/archives/maven-1.x/plugins/test/announcements/announcement-1.8.txt
37
+
args.push('-Dmaven.test.failure.ignore=true');
38
+
36
39
tl.debug("Executing java maven tests with executable : "+executable);
37
40
tl.debug("Executing java maven tests with args :"+args);
Copy file name to clipboardExpand all lines: _generated/AzureTestPlanV0_Node20/Invokers/maveninvoker.ts
+4-1
Original file line number
Diff line number
Diff line change
@@ -33,10 +33,13 @@ export async function executeMavenTests(testsToBeExecuted: string[], pomFilePath
33
33
args.push(pomFilePath);
34
34
}
35
35
36
+
//for returning success exit code incase of test failure and later we detect test failure from PTR command, documentation: https://maven.apache.org/surefire/maven-failsafe-plugin/verify-mojo.html, https://maven.apache.org/archives/maven-1.x/plugins/test/announcements/announcement-1.8.txt
37
+
args.push('-Dmaven.test.failure.ignore=true');
38
+
36
39
tl.debug("Executing java maven tests with executable : "+executable);
37
40
tl.debug("Executing java maven tests with args :"+args);
0 commit comments