example test config

This commit is contained in:
dakkar 2024-11-08 16:32:02 +00:00
parent b4e8e78172
commit b47b25871d
3 changed files with 19 additions and 1 deletions

17
.config/test-example.yml Normal file
View file

@ -0,0 +1,17 @@
url: 'http://misskey.local'
setupPassword: example_password_please_change_this_or_you_will_get_hacked
# ローカルでテストするときにポートを被らないようにするためデフォルトのものとは変える(以下同じ)
port: 61812
db:
host: 127.0.0.1
port: 5432
db: test-misskey
user: postgres
pass: ''
redis:
host: 127.0.0.1
port: 6379
id: aidx

1
.gitignore vendored
View file

@ -36,6 +36,7 @@ coverage
# config
/.config/*
!/.config/example.yml
!/.config/test-example.yml
!/.config/docker_example.yml
!/.config/docker_example.env
!/.config/cypress-devcontainer.yml

View file

@ -199,7 +199,7 @@ There are three types of test codes for the backend:
#### Running Unit Tests or Single-server E2E Tests
1. Create a config file:
```sh
cp .github/misskey/test.yml .config/
cp .config/test-example.yml .config/test.yml
```
2. Start DB and Redis servers for testing: