From 43879ccd1ac273acd8727dc04f78a949b085ba3b Mon Sep 17 00:00:00 2001 From: Simon Priadka Date: Wed, 6 Dec 2017 15:41:12 +0100 Subject: [PATCH 1/4] added KnownIssue category, annotated known issues --- .../configuration/datasources/TestConnectionTestCase.java | 2 ++ .../configuration/elytron/other/ElytronPolicyTestCase.java | 2 ++ .../runtime/deployments/ManagedDeploymentsTestCase.java | 2 ++ .../test/runtime/messaging/XaJmsMetricsTestCase.java | 2 ++ .../java/org/jboss/hal/testsuite/category/KnownIssue.java | 4 ++++ pom.xml | 7 +++++++ 6 files changed, 19 insertions(+) create mode 100644 common/src/main/java/org/jboss/hal/testsuite/category/KnownIssue.java diff --git a/basic/src/test/java/org/jboss/hal/testsuite/test/configuration/datasources/TestConnectionTestCase.java b/basic/src/test/java/org/jboss/hal/testsuite/test/configuration/datasources/TestConnectionTestCase.java index 1af35236..edf092e6 100644 --- a/basic/src/test/java/org/jboss/hal/testsuite/test/configuration/datasources/TestConnectionTestCase.java +++ b/basic/src/test/java/org/jboss/hal/testsuite/test/configuration/datasources/TestConnectionTestCase.java @@ -4,6 +4,7 @@ import org.apache.commons.lang3.RandomStringUtils; import org.jboss.arquillian.container.test.api.RunAsClient; import org.jboss.arquillian.junit.Arquillian; +import org.jboss.hal.testsuite.category.KnownIssue; import org.jboss.hal.testsuite.category.Shared; import org.jboss.hal.testsuite.creaper.ManagementClientProvider; import org.jboss.hal.testsuite.creaper.ResourceVerifier; @@ -171,6 +172,7 @@ public void invalidXADatasource() { } @Test + @Category(KnownIssue.class) public void testValidXAConnectionInWizardAndCancel() throws Exception { datasourcesPage.invokeAddXADatasource(); diff --git a/basic/src/test/java/org/jboss/hal/testsuite/test/configuration/elytron/other/ElytronPolicyTestCase.java b/basic/src/test/java/org/jboss/hal/testsuite/test/configuration/elytron/other/ElytronPolicyTestCase.java index 7167b337..f5f0235b 100644 --- a/basic/src/test/java/org/jboss/hal/testsuite/test/configuration/elytron/other/ElytronPolicyTestCase.java +++ b/basic/src/test/java/org/jboss/hal/testsuite/test/configuration/elytron/other/ElytronPolicyTestCase.java @@ -6,6 +6,7 @@ import org.jboss.arquillian.junit.Arquillian; import org.jboss.dmr.ModelNode; import org.jboss.hal.testsuite.category.Elytron; +import org.jboss.hal.testsuite.category.KnownIssue; import org.jboss.hal.testsuite.creaper.ResourceVerifier; import org.jboss.hal.testsuite.dmr.ModelNodeGenerator; import org.jboss.hal.testsuite.fragment.ConfigFragment; @@ -291,6 +292,7 @@ public void testEditJACCPolicy() throws Exception { } @Test + @Category(KnownIssue.class) public void testEditJACCPolicySingleAttribute() throws Exception { final String jaccPolicyName = randomAlphabetic(7); final String defaultModuleName = policyModuleName; diff --git a/basic/src/test/java/org/jboss/hal/testsuite/test/runtime/deployments/ManagedDeploymentsTestCase.java b/basic/src/test/java/org/jboss/hal/testsuite/test/runtime/deployments/ManagedDeploymentsTestCase.java index 7e39bebf..fbb391dd 100644 --- a/basic/src/test/java/org/jboss/hal/testsuite/test/runtime/deployments/ManagedDeploymentsTestCase.java +++ b/basic/src/test/java/org/jboss/hal/testsuite/test/runtime/deployments/ManagedDeploymentsTestCase.java @@ -4,6 +4,7 @@ import org.jboss.arquillian.drone.api.annotation.Drone; import org.jboss.arquillian.graphene.page.Page; import org.jboss.arquillian.junit.Arquillian; +import org.jboss.hal.testsuite.category.KnownIssue; import org.jboss.hal.testsuite.category.Standalone; import org.jboss.hal.testsuite.creaper.ManagementClientProvider; import org.jboss.hal.testsuite.creaper.command.DeployCommand; @@ -391,6 +392,7 @@ public void medExplodedDeploymentFlagFalseInViewInfoSuccessExpected() { } @Test + @Category(KnownIssue.class) public void medExplodedDeploymentFlagTrueInViewInfoSuccessExpected() { page.navigateToDeploymentAndInvokeView(DEPLOYMENT_MANAGED_ENABLED_8); diff --git a/basic/src/test/java/org/jboss/hal/testsuite/test/runtime/messaging/XaJmsMetricsTestCase.java b/basic/src/test/java/org/jboss/hal/testsuite/test/runtime/messaging/XaJmsMetricsTestCase.java index e0c5de24..43157f39 100644 --- a/basic/src/test/java/org/jboss/hal/testsuite/test/runtime/messaging/XaJmsMetricsTestCase.java +++ b/basic/src/test/java/org/jboss/hal/testsuite/test/runtime/messaging/XaJmsMetricsTestCase.java @@ -16,6 +16,7 @@ import org.jboss.arquillian.graphene.page.Page; import org.jboss.arquillian.junit.Arquillian; import org.jboss.dmr.ModelNode; +import org.jboss.hal.testsuite.category.KnownIssue; import org.jboss.hal.testsuite.category.Shared; import org.jboss.hal.testsuite.creaper.ManagementClientProvider; import org.jboss.hal.testsuite.creaper.ResourceVerifier; @@ -121,6 +122,7 @@ public static void afterClass() throws Exception { * the connection factory and verify against management model that displayed statistics have changed correctly. */ @Test + @Category(KnownIssue.class) public void jmsXaPoolStatisticsTest() throws Exception { generateStats(); page.navigateToDefaultProviderStats().switchToPooledConnectionFactory() diff --git a/common/src/main/java/org/jboss/hal/testsuite/category/KnownIssue.java b/common/src/main/java/org/jboss/hal/testsuite/category/KnownIssue.java new file mode 100644 index 00000000..b6be1ffe --- /dev/null +++ b/common/src/main/java/org/jboss/hal/testsuite/category/KnownIssue.java @@ -0,0 +1,4 @@ +package org.jboss.hal.testsuite.category; + +public interface KnownIssue { +} diff --git a/pom.xml b/pom.xml index f88528f6..171d0486 100644 --- a/pom.xml +++ b/pom.xml @@ -354,6 +354,9 @@ org.jboss.hal.testsuite.category.Elytron + + org.jboss.hal.testsuite.category.KnownIssue + @@ -364,6 +367,9 @@ org.jboss.hal.testsuite.category.PicketBox, org.jboss.hal.testsuite.category.PicketLink + + org.jboss.hal.testsuite.category.KnownIssue + @@ -371,6 +377,7 @@ noSecurity + org.jboss.hal.testsuite.category.KnownIssue, org.jboss.hal.testsuite.category.Elytron, org.jboss.hal.testsuite.category.PicketBox, org.jboss.hal.testsuite.category.PicketLink From 27e973ace919fcca315288d6d9f699a1ae71adb4 Mon Sep 17 00:00:00 2001 From: Simon Priadka Date: Mon, 11 Dec 2017 10:22:15 +0100 Subject: [PATCH 2/4] added withoutKnownIssues profile --- pom.xml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index 171d0486..be1d6f7d 100644 --- a/pom.xml +++ b/pom.xml @@ -354,9 +354,6 @@ org.jboss.hal.testsuite.category.Elytron - - org.jboss.hal.testsuite.category.KnownIssue - @@ -367,9 +364,6 @@ org.jboss.hal.testsuite.category.PicketBox, org.jboss.hal.testsuite.category.PicketLink - - org.jboss.hal.testsuite.category.KnownIssue - @@ -377,7 +371,6 @@ noSecurity - org.jboss.hal.testsuite.category.KnownIssue, org.jboss.hal.testsuite.category.Elytron, org.jboss.hal.testsuite.category.PicketBox, org.jboss.hal.testsuite.category.PicketLink @@ -385,6 +378,15 @@ + + withoutKnownIssues + + + org.jboss.hal.testsuite.category.KnownIssue + + + + From d21ca09cad32496dcf5133f08ec08685b7039c1e Mon Sep 17 00:00:00 2001 From: spriadka Date: Mon, 22 Jan 2018 13:57:43 +0100 Subject: [PATCH 3/4] Added smart testing --- .gitignore | 5 +++++ pom.xml | 9 ++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index a8a2a85e..5aa92bd4 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,9 @@ target .project .idea *.iml +.vscode/ basic/periodic-handler.log + +# Smart Testing Exclusions +.smart-testing/ + diff --git a/pom.xml b/pom.xml index be1d6f7d..8cbd9dd9 100644 --- a/pom.xml +++ b/pom.xml @@ -177,7 +177,7 @@ selenium-bom 2.39.0 pom - import + provided @@ -387,6 +387,7 @@ + @@ -412,10 +413,10 @@ - org.apache.maven.plugins maven-surefire-plugin + 2.20.1 ${browser} @@ -430,8 +431,6 @@ ${arq.managementPort} ${argLine} - ${test.included.category} - ${mode.excluded.category},${test.excluded.category} @@ -461,6 +460,7 @@ true true true + false checkstyle.xml @@ -485,7 +485,6 @@ - org.apache.maven.plugins maven-release-plugin From 26a79d37843818e1f1a23a44da6340427a7c6734 Mon Sep 17 00:00:00 2001 From: spriadka Date: Mon, 22 Jan 2018 14:18:13 +0100 Subject: [PATCH 4/4] Added smart testing --- .mvn/extensions.xml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .mvn/extensions.xml diff --git a/.mvn/extensions.xml b/.mvn/extensions.xml new file mode 100644 index 00000000..c76f8818 --- /dev/null +++ b/.mvn/extensions.xml @@ -0,0 +1,8 @@ + + + + org.arquillian.smart.testing + maven-lifecycle-extension + 0.0.6 + +