mirror of
https://github.com/usememos/memos.git
synced 2024-11-14 10:44:50 +08:00
323 B
323 B
Store tests
How to test store with MySQL?
- Create a database in your MySQL server.
- Run the following command with two environment variables set:
DRIVER=mysql DSN=root@/memos_test go test -v ./test/store/...
DRIVER
should be set tomysql
.DSN
should be set to the DSN of your MySQL server.