-
1. Re: Debugging of Drools rules
thejavafreak Aug 27, 2008 7:08 PM (in response to mrebenst)Do you want to test the .drl file? If not you can create a SeamTest class that injects your rules and the invoke the method that calls drools from there. Have you gotten my point yet? :-)
-
2. Re: Debugging of Drools rules
mrebenst Sep 8, 2008 1:03 PM (in response to mrebenst)I understand your point, but the major difficulty is, that I must test my rules in the correct environment (working memory). Many facts are at run-time produced and inserted into the working memory.
I must debug my drools with my facts!Best regards Martin
-
3. Re: Debugging of Drools rules
tsurdilovic Jun 5, 2009 11:59 PM (in response to mrebenst)About many facts being runtime-produced -- how can you write rules against unknown fact types? Are your rules time-sensitive which makes it hard to create test scenarios?
Testing rules is like testing java classes, you need to define your scenarios and test edge cases. Since you have the API for your fact types, creating tests should not be a big deal imo, prob just take time.