adamecr / Common.DMN.Engine

DMN Engine is a decision engine (rule engine) allowing to execute and evaluate the decisions defined in a DMN model. Its primary target is to evaluate the decision tables that transform the inputs into the output(s) using the decision rules.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DMN "CodeCoverage"

oerodriguezn opened this issue · comments

Is there a way to measure the "code coverage" when executing DMN decisions? The count of rules evaluated or something like that? We have implemented some unit testing to be able to modify DMNs but validating that we dont break anything.
t would be nice to know how much is the DMN file really tested with our defined unit tests.

Hello @oerodriguezn , there is not such complex "analytical" functionality, however you can check the Execution Context Shapshots as well as HitRules in decision result. I guess this should be good enough source of data for your purpose.

Edit: The snapshots functionality was designed "for auditing/tracking of the processing or even for debugging of the decisions when needed", so it's not on by default - you need to set the RecordSnapshots option in execution context options to true in your tests to get the snapshots.

Hope this help
Radek

Closing the ticket due to inactivity