[jboss-jira] [JBoss JIRA] (DROOLS-2008) Test Scenarios: Ability to fail a Guvnor Test Scenario if any unexpected rules are fired when the test scenario is executed

Toni Rikkola (Jira) issues at jboss.org
Wed Jan 16 03:29:00 EST 2019


    [ https://issues.jboss.org/browse/DROOLS-2008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13682748#comment-13682748 ] 

Toni Rikkola commented on DROOLS-2008:
--------------------------------------

I'm sure this has it's uses, but since this tests the implementation and not the results I would give this lower priority than verifying static functions or globals have been edited or used.

However this is quick to implement. The above might take more time.

> Test Scenarios: Ability to fail a Guvnor Test Scenario if any unexpected rules are fired when the test scenario is executed
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DROOLS-2008
>                 URL: https://issues.jboss.org/browse/DROOLS-2008
>             Project: Drools
>          Issue Type: Enhancement
>          Components: Scenario Simulation and Testing, Test Scenarios Editor
>            Reporter: Andrea Lee
>            Assignee: Toni Rikkola
>            Priority: Minor
>
> Example scenario:
> Existing Rules: Rule A, Rule B, Rule C.
> Test Scenario expectation: Expect Rule A to fire once.
> I would like to have the ability to specify that this Test Scenario should fail if any other rule in addition to Rule A is fired WITHOUT having to specify the following additional expectations: Expect Rule B to not fire, Expect Rule C to not fire.
> I have posted this in the user mailing list as well: http://n3.nabble.com/Guvnor-Test-Scenario-Expectations-td722429.html#a722429



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list