diff --git a/.config/test-example.yml b/.config/test-example.yml new file mode 100644 index 0000000000..713cbdb0a0 --- /dev/null +++ b/.config/test-example.yml @@ -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 diff --git a/.gitignore b/.gitignore index 77ae92c023..aba71c5876 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c0f991c215..3b7f495dc7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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: