memos/test/store
Lincoln Nogueira 5bcbbd4c52
chore: fix store tests on Windows (#2769)
It's just a matter of explicitly closing the database, so that TempDir.removeAll doesn't fail.
2024-01-16 13:51:26 +08:00
..
activity_test.go chore: fix store tests on Windows (#2769) 2024-01-16 13:51:26 +08:00
idp_test.go chore: fix store tests on Windows (#2769) 2024-01-16 13:51:26 +08:00
inbox_test.go chore: fix store tests on Windows (#2769) 2024-01-16 13:51:26 +08:00
memo_organizer_test.go chore: fix store tests on Windows (#2769) 2024-01-16 13:51:26 +08:00
memo_relation_test.go chore: fix store tests on Windows (#2769) 2024-01-16 13:51:26 +08:00
memo_test.go chore: fix store tests on Windows (#2769) 2024-01-16 13:51:26 +08:00
migrator_test.go chore: improve resource internal_path migrator (#2698) 2024-01-03 08:31:59 +08:00
README.md
resource_test.go chore: fix store tests on Windows (#2769) 2024-01-16 13:51:26 +08:00
storage_test.go chore: fix store tests on Windows (#2769) 2024-01-16 13:51:26 +08:00
store.go chore: update database migrator 2024-01-06 16:55:13 +08:00
system_setting_test.go chore: fix store tests on Windows (#2769) 2024-01-16 13:51:26 +08:00
tag_test.go chore: fix store tests on Windows (#2769) 2024-01-16 13:51:26 +08:00
user_setting_test.go chore: fix store tests on Windows (#2769) 2024-01-16 13:51:26 +08:00
user_test.go chore: fix store tests on Windows (#2769) 2024-01-16 13:51:26 +08:00
webhook_test.go chore: fix store tests on Windows (#2769) 2024-01-16 13:51:26 +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.