]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - support/doc/development/tests.md
Don't use min FPS, throw instead
[github/Chocobozzz/PeerTube.git] / support / doc / development / tests.md
index e311d326793e8e8f1bc6411de26d2534d11cc0d6..fb3a05326db9bf4c357aa91966d778741b3773d8 100644 (file)
@@ -70,3 +70,18 @@ To run tests on browser stack:
 ```
 $ BROWSERSTACK_USER=your_user BROWSERSTACK_KEY=your_key npm run e2e:browserstack
 ```
+
+### Add E2E tests
+
+To add E2E tests and quickly run tests using a local Chrome, first create a test instance:
+
+```
+$ npm run clean:server:test && NODE_APP_INSTANCE=1 NODE_ENV=test npm start
+```
+
+Then, just run your suite using:
+
+```
+$ cd client/e2e
+$ ../node_modules/.bin/wdio wdio.local-test.conf.ts # you can also add --mochaOpts.grep to only run tests you want
+```