You can create a Rete object and feed it with rules and facts from Java
code. So you could use JUnit to test individual rules with different fact
combinations. I see no reason why this should not give you satisfactory
results. Also, notice that the Rete mehod eval lets you pass gobs of CLP to
a Rete object.
-W

On Sat, Nov 14, 2009 at 1:03 AM, Socrates Frangis <[email protected]>wrote:

> Ive been looking around for any good implementation of Unit Testing on Jess
> Rules. LispUnit http://www.cliki.net/lisp-unit provides something similar
> for Lisp and I've been messing around with JUnit and 'shoe-horning' inputs /
> expected results. Just wondering if anyone has came up with a productive way
> of testing declarative programming when only something procedural (JUnit) is
> available.
>
> -Socrates Frangis
>

Reply via email to