lsd-consulting / lsd-distributed-interceptors

A set of interceptors gathering information from distributed services for the LSD library.

Home Page:https://github.com/integreety/lsd-distributed-interceptor-library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix LSD diagram for EndToEndIT

nickmcdowall opened this issue · comments

Some notes for things to fix the diagrams:

  • Add missing @ExtendWith
  • Figure out why some popups aren't working (may be a yatspec bug)
  • Why are some interactions missing (or should yatspec handle the missing values better)

For me there was no report generated at all.

I have added @ExtendWith(LsdExtension.class) - this enabled the generation of the report but:

  • there is no link to the report in the logs
  • there is no diagrams on the report

@nickmcdowall please have a look and advise if possible. I have pushed a small change on the #6 branch.

Hey man,

Seems it does print out the report url in the logs:

image

For the missing diagrams it seems that no interactions are captured in the LsdContext 🤔.. Not sure if that is down to the interceptors or something more tricky like classloaders causing different instances of the context to load.

ah also noticed this is some of the tests:

doNothing().when(lsdContext).capture(argumentCaptor.capture(), any());

(Note that if there are no captured events there won't be a diagram)