memos/test/store
2023-10-28 02:49:35 +08:00
..
activity_test.go chore: update activity store definition 2023-10-27 23:24:56 +08:00
idp_test.go chore: update common utils (#1908) 2023-07-06 22:53:38 +08:00
inbox_test.go chore: remove unused inbox status 2023-10-28 02:49:35 +08:00
memo_relation_test.go chore: update store tests 2023-10-03 00:47:34 +08:00
memo_test.go chore: update store tests 2023-10-03 00:47:34 +08:00
README.md chore: adjust store test for mysql 2023-09-29 09:15:54 +08:00
resource_test.go chore: retire memo resource relation table 2023-09-27 00:40:16 +08:00
storage_test.go chore: update golangci-lint config 2023-09-17 22:55:13 +08:00
store.go chore: update package name 2023-10-05 23:11:29 +08:00
store_test.go chore: upgrade version to 0.14.2 (#2035) 2023-07-26 22:42:38 +08:00
system_setting_test.go refactor: migrate definition to api v1 (#1879) 2023-07-02 18:56:25 +08:00
tag_test.go refactor: migrate tag to driver 2023-09-26 19:37:22 +08:00
user_setting_test.go chore: adjust store test for mysql 2023-09-29 09:15:54 +08:00
user_test.go chore: update golangci-lint config 2023-09-17 22:55:13 +08:00

Store tests

How to test store with MySQL?

  1. Create a database in your MySQL server.
  2. Run the following command with two environment variables set:
DRIVER=mysql DSN=root@/memos_test go test -v ./test/store/...
  • DRIVER should be set to mysql.
  • DSN should be set to the DSN of your MySQL server.