Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-6258

Fix drools-test-coverage for KieBaseTestConfiguration manipulation

    XMLWordPrintable

    Details

    • Sprint:
      2021 Week 13-15 (from Mar 29)
    • Story Points:
      3
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      During the test migration, I added setIdentity(), setStreamMode() to KieBaseTestConfiguration but it was my bad. KieBaseTestConfiguration has to be immutable. Luckily, we haven't hit issues in drools-test-coverage/test-compiler-integration but issues can be easily reproduced if you set surefire.forkCount=1 in pom.xml.

      <surefire.forkCount>1</surefire.forkCount>
      
      [ERROR] Failures: 
      [ERROR]   NullTest.testNullValuesIndexing:76 Indexing with null values is not working correctly. expected:<OK> but was:<null>
      [ERROR]   PropertyReactivityBlockerTest.testUpdateRewrittenWithCorrectBitMaskAndCorrectClass:271 expected:<1> but was:<0>
      [ERROR]   QueryTest.testNonCloningQueryListener:869->runQueryListenerTest:898 expected:<5000> but was:<1>
      [ERROR]   QueryTest.testStandardQueryListener:864->runQueryListenerTest:898 expected:<5000> but was:<1>
      [ERROR] Errors: 
      [ERROR] org.drools.mvel.integrationtests.WindowTest.testDeclaredLengthWindowInQuery[KieBase type=STREAM_IDENTITY](org.drools.mvel.integrationtests.WindowTest)
      [ERROR]   Run 1: WindowTest.initialization:135 » Runtime The requested KieBase "KieBaseModelNam...
      [ERROR]   Run 2: WindowTest.clean:148 NullPointer
      [INFO] 
      [ERROR] org.drools.mvel.integrationtests.WindowTest.testDeclaredLengthWindowInRule[KieBase type=STREAM_IDENTITY](org.drools.mvel.integrationtests.WindowTest)
      [ERROR]   Run 1: WindowTest.initialization:135 » Runtime The requested KieBase "KieBaseModelNam...
      [ERROR]   Run 2: WindowTest.clean:148 NullPointer
      [INFO] 
      [ERROR] org.drools.mvel.integrationtests.WindowTest.testDeclaredTimeWindowInQuery[KieBase type=STREAM_IDENTITY](org.drools.mvel.integrationtests.WindowTest)
      [ERROR]   Run 1: WindowTest.initialization:135 » Runtime The requested KieBase "KieBaseModelNam...
      [ERROR]   Run 2: WindowTest.clean:148 NullPointer
      [INFO] 
      [ERROR] org.drools.mvel.integrationtests.WindowTest.testDeclaredTimeWindowInRule[KieBase type=STREAM_IDENTITY](org.drools.mvel.integrationtests.WindowTest)
      [ERROR]   Run 1: WindowTest.initialization:135 » Runtime The requested KieBase "KieBaseModelNam...
      [ERROR]   Run 2: WindowTest.clean:148 NullPointer
      [INFO] 
      [ERROR] org.drools.mvel.integrationtests.WindowTest.testLengthWindow[KieBase type=STREAM_IDENTITY](org.drools.mvel.integrationtests.WindowTest)
      [ERROR]   Run 1: WindowTest.initialization:135 » Runtime The requested KieBase "KieBaseModelNam...
      [ERROR]   Run 2: WindowTest.clean:148 NullPointer
      [INFO] 
      [ERROR] org.drools.mvel.integrationtests.WindowTest.testTimeWindow[KieBase type=STREAM_IDENTITY](org.drools.mvel.integrationtests.WindowTest)
      [ERROR]   Run 1: WindowTest.initialization:135 » Runtime The requested KieBase "KieBaseModelNam...
      [ERROR]   Run 2: WindowTest.clean:148 NullPointer
      [INFO] 
      [INFO] 
      [ERROR] Tests run: 5939, Failures: 4, Errors: 6, Skipped: 80
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tkobayashi Toshiya Kobayashi
              Reporter:
              tkobayashi Toshiya Kobayashi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: