Some checks failed
Backend Tests / Static Checks (push) Has been cancelled
Backend Tests / Tests (other) (push) Has been cancelled
Backend Tests / Tests (plugin) (push) Has been cancelled
Backend Tests / Tests (server) (push) Has been cancelled
Backend Tests / Tests (store) (push) Has been cancelled
Build Canary Image / build-frontend (push) Has been cancelled
Build Canary Image / build-push (linux/amd64) (push) Has been cancelled
Build Canary Image / build-push (linux/arm64) (push) Has been cancelled
Build Canary Image / merge (push) Has been cancelled
Frontend Tests / Lint (push) Has been cancelled
Frontend Tests / Build (push) Has been cancelled
Proto Linter / Lint Protos (push) Has been cancelled
14 lines
323 B
Markdown
14 lines
323 B
Markdown
# 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:
|
|
|
|
```go
|
|
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.
|