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

Tests not picking rules files from src/main/resources after upgrading to 6.5.0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 7.1.0.Final
    • 6.5.0.Final
    • core engine
    • None
    • Hide
      1. Clone the Git repository from Github.
      2. Execute git checkout v1.0 to checkout application version that runs on Drools v5.6.0.
      3. Execute tests as mvn clean test to ensure that everything is working fine.
      4. Execute git checkout v2.0 to checkout application version that runs on Drools v6.5.0.
      5. Executing tests as mvn clean test leads to a failure as the tests cannot find the rules files.
      Show
      Clone the Git repository from Github. Execute git checkout v1.0 to checkout application version that runs on Drools v5.6.0. Execute tests as mvn clean test to ensure that everything is working fine. Execute git checkout v2.0 to checkout application version that runs on Drools v6.5.0. Executing tests as mvn clean test leads to a failure as the tests cannot find the rules files.
    • NEW
    • NEW

      I have some rules files under src/main/resources that are picked up fine with Drools v5.6.0. However, Drools v6.5.0 does not pick up the rules files when tests are being run. Turning on DEBUG logging shows that Drools v6.5.0 looks for rules files only under target/test-classes folder (instead of looking for them under target/classes as well).

      A sample project is available on Github.

              mfusco@redhat.com Mario Fusco
              manish.in.java Manish Java (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: