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
Currently the test uses a test persister, which mocks the persister we use in the handler. But it does not provides all functionality to test the handler completely and it is hard to maintain.
Describe your ideal solution
Change the test, that need a database, to integration tests, using github.com/ory/dockertest. One handler test is already using it, check it out: user_test.go.
If a test needs a database, it should be skipped if the -short flag is provided. So even if someone has no docker installed, he can run some tests.
Workarounds or alternatives
No response
Hanko Version
all
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Checklist
Description
Currently the test uses a test persister, which mocks the persister we use in the handler. But it does not provides all functionality to test the handler completely and it is hard to maintain.
Describe your ideal solution
Change the test, that need a database, to integration tests, using github.com/ory/dockertest. One handler test is already using it, check it out: user_test.go.
If a test needs a database, it should be skipped if the -short flag is provided. So even if someone has no docker installed, he can run some tests.
Workarounds or alternatives
No response
Hanko Version
all
Additional Context
No response
The text was updated successfully, but these errors were encountered: