From e38af67557966616acd90e29901e8cec61352061 Mon Sep 17 00:00:00 2001 From: Andrey Shcheglov Date: Thu, 28 Jul 2022 18:38:40 +0000 Subject: [PATCH] Simplify Maven configuration by running `DiktatSaveSmokeTest` as an integration test (#1482) ### What's done: * Finally, fixes #1478. --- diktat-rules/pom.xml | 71 +++++++++++++++++++++++++++++++++++++------- pom.xml | 5 ++++ 2 files changed, 65 insertions(+), 11 deletions(-) diff --git a/diktat-rules/pom.xml b/diktat-rules/pom.xml index cdde4b934e..0ff1615045 100644 --- a/diktat-rules/pom.xml +++ b/diktat-rules/pom.xml @@ -164,21 +164,71 @@ org.apache.maven.plugins - maven-jar-plugin + maven-surefire-plugin + + + **/DiktatSaveSmokeTest.* + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + **/DiktatSaveSmokeTest.* + + + + + + integration-test + verify + + + + + + + org.jacoco + jacoco-maven-plugin - + - default-jar - none + default-prepare-agent-integration + + prepare-agent-integration + - - fat-jar-for-smoke-tests - process-test-classes + default-merge + post-integration-test + + merge + + + + + ${project.build.directory} + + jacoco.exec + jacoco-it.exec + + + + ${project.build.directory}/jacoco-merged.exec + + + + default-report-merged - jar + report-integration + + ${project.reporting.outputDirectory}/jacoco + ${project.build.directory}/jacoco-merged.exec + @@ -188,7 +238,6 @@ org.apache.maven.plugins maven-shade-plugin - 3.3.0