From 6cb009c3929481203eb10d21691e57179963b000 Mon Sep 17 00:00:00 2001 From: Allain Magyar Date: Fri, 22 Mar 2024 11:44:04 -0600 Subject: [PATCH] test: fixes summary issue Signed-off-by: Allain Magyar --- .github/workflows/integration-tests.yml | 2 +- tests/integration-tests/build.gradle.kts | 13 ++++++++++++- .../kotlin/steps/schemas/CredentialSchemasSteps.kt | 2 +- .../VerificationPoliciesSteps.kt | 2 +- 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index f448dfdae2..f3871590d8 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -119,7 +119,7 @@ jobs: - name: Upload artifacts if: github.ref_name == 'main' || steps.analyze_test_results.outputs.conclusion == 'failure' - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: integration-tests-result path: ${{ env.REPORTS_DIR }} diff --git a/tests/integration-tests/build.gradle.kts b/tests/integration-tests/build.gradle.kts index 7db4bdc666..6c84edbd7f 100644 --- a/tests/integration-tests/build.gradle.kts +++ b/tests/integration-tests/build.gradle.kts @@ -9,6 +9,13 @@ plugins { group = "io.iohk.atala.prism" version = "1.0-SNAPSHOT" +buildscript { + dependencies { + classpath("net.serenity-bdd:serenity-single-page-report:4.1.4") + classpath("net.serenity-bdd:serenity-json-summary-report:4.1.4") + } +} + repositories { mavenLocal() mavenCentral() @@ -34,7 +41,10 @@ dependencies { testImplementation("com.sksamuel.hoplite:hoplite-hocon:2.7.5") // Kotlin compose testImplementation("org.testcontainers:testcontainers:1.19.1") +} +serenity { + reports = listOf("single-page-html", "json-summary") } tasks.register("cleanTarget") { @@ -43,6 +53,7 @@ tasks.register("cleanTarget") { tasks.test { dependsOn("cleanTarget") + finalizedBy("reports") testLogging.showStandardStreams = true systemProperty("cucumber.filter.tags", System.getProperty("cucumber.filter.tags")) } @@ -74,7 +85,7 @@ afterEvaluate { systemProperty("PRISM_NODE_VERSION", System.getenv("PRISM_NODE_VERSION") ?: "") systemProperty("OPEN_ENTERPRISE_AGENT_VERSION", System.getenv("OPEN_ENTERPRISE_AGENT_VERSION") ?: "") systemProperty("cucumber.filter.tags", System.getProperty("cucumber.filter.tags")) - finalizedBy("aggregate") + finalizedBy("aggregate", "reports") } } diff --git a/tests/integration-tests/src/test/kotlin/steps/schemas/CredentialSchemasSteps.kt b/tests/integration-tests/src/test/kotlin/steps/schemas/CredentialSchemasSteps.kt index da902aa7ef..0c41a2ec32 100644 --- a/tests/integration-tests/src/test/kotlin/steps/schemas/CredentialSchemasSteps.kt +++ b/tests/integration-tests/src/test/kotlin/steps/schemas/CredentialSchemasSteps.kt @@ -1,4 +1,4 @@ -package steps +package steps.schemas import common.TestConstants import interactions.Get diff --git a/tests/integration-tests/src/test/kotlin/steps/verificationpolicies/VerificationPoliciesSteps.kt b/tests/integration-tests/src/test/kotlin/steps/verificationpolicies/VerificationPoliciesSteps.kt index 0b0fe7c663..ab891702a5 100644 --- a/tests/integration-tests/src/test/kotlin/steps/verificationpolicies/VerificationPoliciesSteps.kt +++ b/tests/integration-tests/src/test/kotlin/steps/verificationpolicies/VerificationPoliciesSteps.kt @@ -1,4 +1,4 @@ -package features.verificationpolicies +package steps.verificationpolicies import common.TestConstants import interactions.Get