X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=.github%2FCONTRIBUTING.md;h=f53dd6406cafcabed72aa525a242d684aff61967;hb=992f498e312efcde46f818ba719b50f1f958272f;hp=1d034944d27a8ce3def6daf58090e6ebb3444004;hpb=93ab83893d6c59c90fd92229af5ab2977d05940b;p=github%2FChocobozzz%2FPeerTube.git diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 1d034944d..f53dd6406 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -83,8 +83,8 @@ and then clone the sources and install node modules: ``` $ git clone https://github.com/Chocobozzz/PeerTube -$ git remote add me git@github.com:YOUR_GITHUB_USERNAME/PeerTube.git $ cd PeerTube +$ git remote add me git@github.com:YOUR_GITHUB_USERNAME/PeerTube.git $ yarn install --pure-lockfile ``` @@ -195,6 +195,12 @@ If you just want to run 1 test (which is what you want to debug a specific test $ TS_NODE_FILES=true npm run mocha -- --exit -r ts-node/register -r tsconfig-paths/register --bail server/tests/api/videos/single-server.ts ``` +While testing, you might want to display a server's logs: + +``` +NODE_APP_INSTANCE=1 NODE_ENV=test npm run parse-log -- --level debug | less +GF +``` + Instance configurations are in `config/test-{1,2,3,4,5,6}.yaml`. Note that only instance 2 has transcoding enabled.