mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-21 21:45:11 +00:00
example test config
This commit is contained in:
parent
b4e8e78172
commit
b47b25871d
3 changed files with 19 additions and 1 deletions
17
.config/test-example.yml
Normal file
17
.config/test-example.yml
Normal 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
1
.gitignore
vendored
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue