Skip to content

Commit fa3a12a

Browse files
authored
Print links to test logs after integTest (#4273)
* Print links to test logs after integTest Signed-off-by: Tomoyuki Morita <[email protected]> * print even when tets failed Signed-off-by: Tomoyuki Morita <[email protected]> --------- Signed-off-by: Tomoyuki Morita <[email protected]>
1 parent 71839f1 commit fa3a12a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

integ-test/build.gradle

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ integTest {
448448
testLogging {
449449
events "failed"
450450
}
451-
451+
452452
dependsOn ':opensearch-sql-plugin:bundlePlugin'
453453
if(getOSFamilyType() != "windows") {
454454
dependsOn startPrometheus
@@ -516,8 +516,17 @@ integTest {
516516

517517
// Exclude this IT, because they executed in another task (:integTestWithSecurity)
518518
exclude 'org/opensearch/sql/security/**'
519+
520+
finalizedBy 'printIntegTestPaths'
519521
}
520522

523+
task printIntegTestPaths {
524+
doLast {
525+
println "Test report available at: file://${project.buildDir}/reports/tests/integTest/index.html"
526+
println "integTest cluster logs available at: file://${project.buildDir}/testclusters/integTest-0/logs/integTest.log"
527+
println "remoteCluster cluster logs available at: file://${project.buildDir}/testclusters/remoteCluster-0/logs/remoteCluster.log"
528+
}
529+
}
521530

522531
task comparisonTest(type: RestIntegTestTask) {
523532
testLogging {

0 commit comments

Comments
 (0)