nao1215 / spectest

A simple and extensible behavioural testing library for Go. You can use api test to simplify REST API, HTTP handler and e2e tests.
MIT License
37 stars 1 forks source link

Creating Function/Method-Based Sequence Diagrams #97

Open nao1215 opened 1 year ago

nao1215 commented 1 year ago

Is your feature request related to a problem? Please describe.

"Spectest" has the functionality to create sequence diagrams. However, due to the coarse granularity of the generated sequence diagrams, I want to create sequence diagrams based on method calls.

When creating function/method-based sequence diagrams, it is straightforward to perform static analysis of the code. This method eliminates the need to execute it every time during testing, addressing concerns about slow performance.

Therefore, a command-based sequence diagram generation feature is developed to facilitate verification.

nao1215 commented 1 year ago

Ref. https://github.com/ondrajz/go-callvis