go-sdk icon indicating copy to clipboard operation
go-sdk copied to clipboard

Expose test client for end-user unit testing

Open mnussbaum opened this issue 3 years ago • 3 comments

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

I'm writing an application that uses a Dapr state store. I'd like to be able to run unit tests in isolation from external services, so I'd like to use a fake Dapr client in test.

Describe the solution you'd like

It looks like this SDK's own unit tests build a private test Dapr client, it would be helpful if that was exposed publicly.

Describe alternatives you've considered

I can probably implement my own fake Dapr client, but it would be convenient and more forward-compatible if this was provided by the project itself

mnussbaum avatar Dec 03 '21 23:12 mnussbaum

Exposing it would make users easier to build their own unit testing, sound great!

@mnussbaum are you intersted in it?

daixiang0 avatar Dec 13 '21 01:12 daixiang0

/assign

I'll take a look when I get a mo to hopefully get this started.

mikeee avatar Feb 15 '24 18:02 mikeee

🚀 Issue assigned to you @mikeee

github-actions[bot] avatar Feb 15 '24 18:02 github-actions[bot]