[ 
https://issues.apache.org/jira/browse/TINKERPOP-3097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17870642#comment-17870642
 ] 

Ken Hu commented on TINKERPOP-3097:
-----------------------------------

Do you mind clarifying what you would like to see with a small example? 
Something that shows why unit testing is difficult right now with gremlin-go. 
Are you asking for an easier way to mock the result/response?

> Request for Mocking Capabilities in gremlin-go for Easier Unit Testing
> ----------------------------------------------------------------------
>
>                 Key: TINKERPOP-3097
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-3097
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: go
>    Affects Versions: 3.7.2
>            Reporter: thomas-dg
>            Priority: Major
>
> I have been using the gremlin-go library and found that it currently lacks 
> built-in mocking capabilities. This absence makes it challenging to perform 
> unit testing effectively.
> As a workaround, I have defined an additional interface layer between the 
> caller and gremlin-go, which allows me to unit test the business logic of the 
> caller. However, this is not the most efficient solution.
> It would be significantly more convenient if the gremlin-go library could 
> provide native support for mocking. This feature would streamline the testing 
> process and improve the library's usability.
> I look forward to your response and further discussion on this matter.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to