Fork me on GitHub
#clara
<
2017-12-13
>
dadair20:12:29

Is there any way to get cloverage coverage statistics for clara defrules?

wparker22:12:37

I suspect that Clara does enough code generation and evaluation behind the scenes to confuse tooling like Cloverage, at least without some modification to specifically support Clara, but it isn’t something I’ve looked into. I don’t think the rules network could be effectively statically analyzed but perhaps something could be created that looked at what rules were interacted with; that information is available via Clara’s tracing

mikerod01:12:59

I’m not even sure how Cloverage performs its analysis. Is it via tools.analyzer ?

dadair18:12:13

I'm not exactly sure how it works; but a search in the repo for tools.analyzer returns empty

dadair18:12:01

I'm mostly just interested in seeing what rules are firing during tests, to make sure I have sufficient tests.

devn20:12:21

@U0E2EQFME you could do some reading of the inspected session

devn20:12:35

Or maybe attach a tracing listener to track the rules fired

devn20:12:49

That information should be available via either method

mikerod20:12:18

Yeah, I think I looked at it before and it didn’t use analyzer. Not sure how it can check coverage. Especially via macros.

mikerod20:12:23

perhaps magic