diff options
-rw-r--r-- | .github/CONTRIBUTING.md | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index a58efc1dd..74dad7381 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md | |||
@@ -105,11 +105,22 @@ $ npm run dev | |||
105 | 105 | ||
106 | ### Federation | 106 | ### Federation |
107 | 107 | ||
108 | This will run 3 nodes: | 108 | Create the tests database if they do not exist: |
109 | |||
110 | ``` | ||
111 | $ sudo -u postgres createdb -O peertube peertube_test{1,2,3} | ||
112 | ``` | ||
113 | |||
114 | Build the application and flush the old tests data: | ||
109 | 115 | ||
110 | ``` | 116 | ``` |
111 | $ npm run build | 117 | $ npm run build |
112 | $ npm run clean:server:test | 118 | $ npm run clean:server:test |
119 | ``` | ||
120 | |||
121 | This will run 3 nodes: | ||
122 | |||
123 | ``` | ||
113 | $ npm run play | 124 | $ npm run play |
114 | ``` | 125 | ``` |
115 | 126 | ||
@@ -119,7 +130,13 @@ with the `root` as username and `test{1,2,3}` for the password. | |||
119 | 130 | ||
120 | ### Unit tests | 131 | ### Unit tests |
121 | 132 | ||
122 | To run unit tests, you need to build the application first: | 133 | Create the tests database if they do not exist: |
134 | |||
135 | ``` | ||
136 | $ sudo -u postgres createdb -O peertube peertube_test{1,2,3} | ||
137 | ``` | ||
138 | |||
139 | Build the application and run the unit/integration tests: | ||
123 | 140 | ||
124 | ``` | 141 | ``` |
125 | $ npm run build | 142 | $ npm run build |