You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It just hang there doing nothing. Then I realized that the first step is to login into WX, and the test waits there for me to do it.
I'm thinking that doing fully automated tests with a mock WX server should not be that difficult. Here are the things that I find that might be useful for it:
Last time I did a test under
openwechat
usinggo test ./...
It just hang there doing nothing. Then I realized that the first step is to login into WX, and the test waits there for me to do it.
I'm thinking that doing fully automated tests with a mock WX server should not be that difficult. Here are the things that I find that might be useful for it:
Mocking HTTP Requests in Golang
https://www.thegreatcodeadventure.com/mocking-http-requests-in-golang/
Testing Your (HTTP) Handlers in Go
https://blog.questionable.services/article/testing-http-handlers-go/
The awesomeness of the httptest package in Go
https://gianarb.it/blog/golang-mockmania-httptest
The text was updated successfully, but these errors were encountered: