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

Renaming a rule should update related test scenarios

    XMLWordPrintable

Details

    Description

      Current behaviour:

      • Create a rule with name "test-rule".
      • Create a test scenario with an expect clause "test-rule" should fire at least once.
      • Populate the test scenario and test-rule in such a way that the test scenario runs succesfully with this expect clause.
      • Rename the rule from "test-rule" to "test-rule-renamed".
      • Run the test scenario again.
      • Observe the test scenario will fail because it expects a rule with name "test-rule" to be fired at least once. This rule no longer exists because it is renamed.

      Expected behaviour:

      • When the rule is renamed from "test-rule" to "test-rule-renamed", all test scenarios referring to this rule (in an expect clause or otherwise) should be updated transparently.

      Attachments

        Activity

          People

            Unassigned Unassigned
            valentijn_jira Valentijn Scholten (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: