Skip to content

Commit

Permalink
Tagged turtle tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pibizza committed Jan 24, 2025
1 parent afde373 commit 9bee9fd
Show file tree
Hide file tree
Showing 30 changed files with 53 additions and 128 deletions.
11 changes: 0 additions & 11 deletions drools-compiler/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -213,17 +213,6 @@
</build>

<profiles>
<profile>
<id>runTurtleTests</id>
<activation>
<property>
<name>runTurtleTests</name>
</property>
</activation>
<properties>
<excludedGroups/>
</properties>
</profile>
<profile>
<id>enableTestStatusListener</id>
<activation>
Expand Down
25 changes: 0 additions & 25 deletions drools-test-coverage/test-compiler-integration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -177,31 +177,6 @@
</dependencies>

<profiles>
<profile>
<id>runTurtleTests</id>
<activation>
<property>
<name>runTurtleTests</name>
</property>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemProperties>
<property>
<name>runTurtleTests</name>
<value>true</value>
</property>
</systemProperties>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>

<!-- test-compiler-integration requires test jars built by drools-test-coverage-jars -->
<!-- This profile makes sure that drools-test-coverage-jars is executed if not-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
import org.drools.testcoverage.common.model.A;
import org.drools.testcoverage.common.util.KieBaseTestConfiguration;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Timeout;
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.kie.api.KieBase;
import org.kie.api.KieBaseConfiguration;
import org.kie.api.io.ResourceType;
Expand All @@ -38,7 +38,7 @@

import static org.assertj.core.api.Assertions.fail;

@EnabledIfSystemProperty(named = "runTurtleTests", matches = "true")
@Tag("TurtleTests")
public class CompositeAgendaTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@
import org.drools.testcoverage.common.util.KieBaseTestConfiguration;
import org.drools.testcoverage.common.util.KieBaseUtil;
import org.drools.testcoverage.common.util.TestParametersUtil2;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Timeout;
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;
import org.kie.api.KieBase;
import org.kie.api.runtime.KieSession;

import static org.assertj.core.api.Assertions.assertThat;

@EnabledIfSystemProperty(named = "runTurtleTests", matches = "true")
@Tag("TurtleTests")
public class QueryConcurrencyTest {

private static int LOOP = 500;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@

import org.drools.testcoverage.common.util.KieBaseTestConfiguration;
import org.drools.testcoverage.common.util.TestParametersUtil2;
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.junit.jupiter.api.Tag;

@EnabledIfSystemProperty(named = "runTurtleTests", matches = "true")
@Tag("TurtleTests")
public class AccumulateFunctionConcurrencyTest extends BaseConcurrencyTest {

public static Stream<KieBaseTestConfiguration> parameters() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@

import org.drools.testcoverage.common.util.KieBaseTestConfiguration;
import org.drools.testcoverage.common.util.TestParametersUtil2;
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.junit.jupiter.api.Tag;
import org.kie.api.runtime.KieSession;

@EnabledIfSystemProperty(named = "runTurtleTests", matches = "true")
@Tag("TurtleTests")
public class ConsequenceConcurrencyTest extends BaseConcurrencyTest {

public static Stream<KieBaseTestConfiguration> parameters() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@

import org.drools.testcoverage.common.util.KieBaseTestConfiguration;
import org.drools.testcoverage.common.util.TestParametersUtil2;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.kie.api.KieBase;
import org.kie.api.runtime.KieSession;

@EnabledIfSystemProperty(named = "runTurtleTests", matches = "true")
@Tag("TurtleTests")
public class ConsequenceWithAndOrConcurrencyTest extends BaseConcurrencyTest {

public static Stream<KieBaseTestConfiguration> parameters() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@

import org.drools.testcoverage.common.util.KieBaseTestConfiguration;
import org.drools.testcoverage.common.util.TestParametersUtil2;
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.junit.jupiter.api.Tag;

@EnabledIfSystemProperty(named = "runTurtleTests", matches = "true")
@Tag("TurtleTests")
public class ConstraintConcurrencyTest extends BaseConcurrencyTest {

public static Stream<KieBaseTestConfiguration> parameters() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@

import org.drools.testcoverage.common.util.KieBaseTestConfiguration;
import org.drools.testcoverage.common.util.TestParametersUtil2;
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.junit.jupiter.api.Tag;
import org.kie.api.KieBase;
import org.kie.api.runtime.KieSession;

@EnabledIfSystemProperty(named = "runTurtleTests", matches = "true")
@Tag("TurtleTests")
public class ConstraintWithAndOrConcurrencyTest extends BaseConcurrencyTest {

public static Stream<KieBaseTestConfiguration> parameters() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@

import org.drools.testcoverage.common.util.KieBaseTestConfiguration;
import org.drools.testcoverage.common.util.TestParametersUtil2;
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.junit.jupiter.api.Tag;
import org.kie.api.KieBase;
import org.kie.api.runtime.KieSession;

@EnabledIfSystemProperty(named = "runTurtleTests", matches = "true")
@Tag("TurtleTests")
public class ConstraintWithAndOrJittingConcurrencyTest extends BaseConcurrencyTest {

public static Stream<KieBaseTestConfiguration> parameters() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@

import org.drools.testcoverage.common.util.KieBaseTestConfiguration;
import org.drools.testcoverage.common.util.TestParametersUtil2;
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.junit.jupiter.api.Tag;

@EnabledIfSystemProperty(named = "runTurtleTests", matches = "true")
@Tag("TurtleTests")
public class EvalConcurrencyTest extends BaseConcurrencyTest {

public static Stream<KieBaseTestConfiguration> parameters() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@

import org.drools.testcoverage.common.util.KieBaseTestConfiguration;
import org.drools.testcoverage.common.util.TestParametersUtil2;
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.junit.jupiter.api.Tag;

@EnabledIfSystemProperty(named = "runTurtleTests", matches = "true")
@Tag("TurtleTests")
public class FromAccumulateConcurrencyTest extends BaseConcurrencyTest {

public static Stream<KieBaseTestConfiguration> parameters() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import org.drools.testcoverage.common.model.Result;
import org.drools.testcoverage.common.util.KieBaseTestConfiguration;
import org.drools.testcoverage.common.util.KieBaseUtil;
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;
import org.kie.api.KieBase;
Expand All @@ -40,7 +40,7 @@

import static org.assertj.core.api.Assertions.assertThat;

@EnabledIfSystemProperty(named = "runTurtleTests", matches = "true")
@Tag("TurtleTests")
public class GlobalConcurrencyTest {

private static final Logger LOGGER = LoggerFactory.getLogger(GlobalConcurrencyTest.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@

import org.drools.testcoverage.common.util.KieBaseTestConfiguration;
import org.drools.testcoverage.common.util.TestParametersUtil2;
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.junit.jupiter.api.Tag;
import org.kie.api.runtime.KieSession;

@EnabledIfSystemProperty(named = "runTurtleTests", matches = "true")
@Tag("TurtleTests")
public class MVELDateClassFieldReaderConcurrencyTest extends BaseConcurrencyTest {

public static Stream<KieBaseTestConfiguration> parameters() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@

import org.drools.testcoverage.common.util.KieBaseTestConfiguration;
import org.drools.testcoverage.common.util.TestParametersUtil2;
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.junit.jupiter.api.Tag;
import org.kie.api.runtime.KieSession;

@EnabledIfSystemProperty(named = "runTurtleTests", matches = "true")
@Tag("TurtleTests")
public class MVELNumberClassFieldReaderConcurrencyTest extends BaseConcurrencyTest {

public static Stream<KieBaseTestConfiguration> parameters() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@

import org.drools.testcoverage.common.util.KieBaseTestConfiguration;
import org.drools.testcoverage.common.util.TestParametersUtil2;
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.junit.jupiter.api.Tag;
import org.kie.api.runtime.KieSession;

@EnabledIfSystemProperty(named = "runTurtleTests", matches = "true")
@Tag("TurtleTests")
public class MVELObjectClassFieldReaderConcurrencyTest extends BaseConcurrencyTest {

public static Stream<KieBaseTestConfiguration> parameters() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@

import java.util.stream.Stream;

import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.junit.jupiter.api.Tag;

@EnabledIfSystemProperty(named = "runTurtleTests", matches = "true")
@Tag("TurtleTests")
public class AddRemoveGenerated2RulesEval2Test extends AbstractAddRemoveGenerated2RulesTest {


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@

import java.util.stream.Stream;

import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.junit.jupiter.api.Tag;

@EnabledIfSystemProperty(named = "runTurtleTests", matches = "true")
@Tag("TurtleTests")
public class AddRemoveGenerated2RulesEvalTest extends AbstractAddRemoveGenerated2RulesTest {

public static Stream<ConstraintsPair> parameters() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@

import java.util.stream.Stream;

import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.junit.jupiter.api.Tag;

@EnabledIfSystemProperty(named = "runTurtleTests", matches = "true")
@Tag("TurtleTests")
public class AddRemoveGenerated2RulesIntegerTest extends AbstractAddRemoveGenerated2RulesTest {

public static Stream<ConstraintsPair> parameters() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@

import java.util.stream.Stream;

import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.junit.jupiter.api.Tag;

@EnabledIfSystemProperty(named = "runTurtleTests", matches = "true")
@Tag("TurtleTests")
public class AddRemoveGenerated2RulesMapContainsTest extends AbstractAddRemoveGenerated2RulesTest {

public static Stream<ConstraintsPair> parameters() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@

import java.util.stream.Stream;

import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.junit.jupiter.api.Tag;

@EnabledIfSystemProperty(named = "runTurtleTests", matches = "true")
@Tag("TurtleTests")
public class AddRemoveGenerated2RulesNotNotTest extends AbstractAddRemoveGenerated2RulesTest {

public static Stream<ConstraintsPair> parameters() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@

import java.util.stream.Stream;

import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.junit.jupiter.api.Tag;

@EnabledIfSystemProperty(named = "runTurtleTests", matches = "true")
@Tag("TurtleTests")
public class AddRemoveGenerated2RulesNotTest extends AbstractAddRemoveGenerated2RulesTest {

public static Stream<ConstraintsPair> parameters() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@

import java.util.stream.Stream;

import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.junit.jupiter.api.Tag;

@EnabledIfSystemProperty(named = "runTurtleTests", matches = "true")
@Tag("TurtleTests")
public class AddRemoveGenerated2RulesStringIntegerTest extends AbstractAddRemoveGenerated2RulesTest {

public static Stream<ConstraintsPair> parameters() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@

import java.util.stream.Stream;

import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.junit.jupiter.api.Tag;

@EnabledIfSystemProperty(named = "runTurtleTests", matches = "true")
@Tag("TurtleTests")
public class AddRemoveGenerated2RulesStringTest extends AbstractAddRemoveGenerated2RulesTest {

public static Stream<ConstraintsPair> parameters() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
import java.util.Set;
import java.util.stream.Stream;

import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;
import org.kie.api.runtime.KieSession;
import org.kie.api.runtime.rule.FactHandle;

import static org.assertj.core.api.Assertions.assertThat;

@EnabledIfSystemProperty(named = "runTurtleTests", matches = "true")
@Tag("TurtleTests")
public class AddRemoveRulesAddDeleteFactsTest {

public static Stream<StringPermutation> parameters() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@
import java.util.concurrent.atomic.AtomicInteger;

import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Timeout;
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.kie.api.runtime.KieSession;

import static org.assertj.core.api.Assertions.assertThat;

/**
* Tests adding and removing rules with advanced operators.
*/
@EnabledIfSystemProperty(named = "runTurtleTests", matches = "true")
@Tag("TurtleTests")
public class AddRemoveRulesAdvOperatorsTest {

@Test
Expand Down
Loading

0 comments on commit 9bee9fd

Please sign in to comment.