Bug 724177 (BRMS-120)

Summary: unit tests against platform distribution
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Aleksandar Kostadinov <akostadinov>
Component: BRE (Expert, Fusion)Assignee: Mark Proctor <mark.proctor>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: high    
Version: 5.0.0.CR2CC: jgraham, kijanowski, lcarlon
Target Milestone: ---   
Target Release: CONTINUING, BRMS 5.2.0.GA   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/BRMS-120
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-31 19:53:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Aleksandar Kostadinov 2009-05-13 12:31:54 UTC
Date of First Response: 2009-05-13 11:22:37
securitylevel_name: Public

I see the following unit tests failing:
# org.drools.reteoo.SchedulerTest.testDoLoopScheduledActivation
# org.drools.compiler.Java5Test(JANINO).testJava5Rule
# org.drools.integrationtests.AccumulateTest(JANINO).testAccumulateReverseModify
# org.drools.integrationtests.AccumulateTest(JANINO).testAccumulateReverseModify2
# org.drools.integrationtests.AccumulateTest(JANINO).testAccumulateMultiPatternJava
# org.drools.integrationtests.AccumulateTest(JANINO).testAccumulateWithPreviouslyBoundVariables
# org.drools.integrationtests.AccumulateTest(JANINO).testAccumulateGlobals
# org.drools.integrationtests.DynamicRulesTest(ECLIPSE).testDynamicFunction
# org.drools.integrationtests.DynamicRulesTest(JANINO).testDynamicFunction
# org.drools.integrationtests.MiscTest(JANINO).testWithInvalidRule

see http://hudson.qa.jboss.com/hudson/view/BRMS/job/brms-rules-single/18/testReport/

For the tests classpath are used all jars from the BRMS distribution + 
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.jmock</groupId>
            <artifactId>jmock</artifactId>
            <version>2.5.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.jmock</groupId>
            <artifactId>jmock-legacy</artifactId>
            <version>2.5.1</version>
            <scope>test</scope>
        </dependency>
        <!-- Compiler dependencies -->
        <dependency><!-- TODO remove me as xstream brings in xpp3_min -->
             <groupId>xpp3</groupId>
             <artifactId>xpp3</artifactId>
             <version>1.1.3.4.O</version>
        </dependency>
        <dependency>
           <groupId>org.mortbay.jetty</groupId>
           <artifactId>jetty-embedded</artifactId>
           <version>6.1.15</version>
           <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.antlr</groupId>
            <artifactId>antlr</artifactId>
                <version>3.1.1</version>
                <exclusions>
                  <exclusion>
                    <groupId>org.antlr</groupId>
                    <artifactId>stringtemplate</artifactId>
                  </exclusion>      
                  <exclusion>
                    <groupId>org.apache.maven</groupId>
                    <artifactId>maven-project</artifactId>
                  </exclusion>
                </exclusions>                                             
        </dependency>

Comment 1 Jaroslaw Kijanowski 2009-05-13 15:22:37 UTC
Hey Mark,
 could you have a look at the test report?  We're seeing this issues when running the drools testsuite from http://anonsvn.labs.jboss.com/labs/jbossrules/tags/5.0.0.26115.FINAL/ against the bits we ship with BRMS (also built from this tag).

Thanks.

Comment 2 John Graham 2009-06-15 20:27:23 UTC
Mark, 

Any update on this?

Comment 3 Aleksandar Kostadinov 2009-09-07 17:53:43 UTC
org.drools.integrationtests.DynamicRulesTest(ECLIPSE).testDynamicFunction
org.drools.integrationtests.DynamicRulesTest(JANINO).testDynamicFunction
are *not* failing in 5.0.1

org.drools.integrationtests.ExecutionFlowControlTest(ECLIPSE).testRuleFlowGroupInActiveMode
org.drools.integrationtests.ExecutionFlowControlTest(JANINO).testRuleFlowGroupInActiveMode
transient/fail on some test runs and pass on others 

Comment 4 Len DiMaggio 2011-05-31 19:53:04 UTC
This will be tested in the first 5.2 build.