aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/CONTRIBUTING.md
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-04-03 08:49:18 +0200
committerChocobozzz <me@florianbigard.com>2018-04-03 08:49:18 +0200
commita2897212640d6ff09881aaf1cc49bbdf65b4918d (patch)
tree151ba2bd5e115ddc1a6173684d58f43d37ab0f0b /.github/CONTRIBUTING.md
parent1909685158e092df617e50add9e6e655b5d23cbf (diff)
downloadPeerTube-a2897212640d6ff09881aaf1cc49bbdf65b4918d.tar.gz
PeerTube-a2897212640d6ff09881aaf1cc49bbdf65b4918d.tar.zst
PeerTube-a2897212640d6ff09881aaf1cc49bbdf65b4918d.zip
Add information about test databases in contributing guide
Diffstat (limited to '.github/CONTRIBUTING.md')
-rw-r--r--.github/CONTRIBUTING.md21
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
108This will run 3 nodes: 108Create the tests database if they do not exist:
109
110```
111$ sudo -u postgres createdb -O peertube peertube_test{1,2,3}
112```
113
114Build 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
121This 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
122To run unit tests, you need to build the application first: 133Create the tests database if they do not exist:
134
135```
136$ sudo -u postgres createdb -O peertube peertube_test{1,2,3}
137```
138
139Build the application and run the unit/integration tests:
123 140
124``` 141```
125$ npm run build 142$ npm run build