Brenden Ehlers b2582f409b Spec-based API (#3653) 5 月之前
..
automated b2582f409b Spec-based API (#3653) 5 月之前
fixture d1f5872b5a chore(test): add followers fixture test data 8 月之前
load b2582f409b Spec-based API (#3653) 5 月之前
.gitignore fca3b02851 Point fakechat test script to localhost by default. Commit package.json 3 年之前
README.md 58b6f82922 chore(tests): add readme note about remote host testing 1 年之前
fakeChat.js b6f68628c0 Chat refactor + persistent backing chat users (#1163) 3 年之前
ocTestStream.sh dd72879d09 Fix HLS automatic test (#2572) 1 年之前
package-lock.json 59f9299b6a Bump node-fetch from 2.6.6 to 2.6.7 in /test (#1700) 2 年之前
package.json 59f9299b6a Bump node-fetch from 2.6.6 to 2.6.7 in /test (#1700) 2 年之前
populateContent.sh f1a2a918c8 Change host in fixture script 2 年之前
test-local.sh dae6c0c71a chore: add local<->public test script 1 年之前
userColorsTest.js f4815e331c Update chat styling 4 年之前

README.md

Tests

Load Tests

  1. Install artillery from NPM/Yarn/Whatever Javascript package manager is popular this week.
  2. Start an instance of the server on localhost.
  3. artillery run httpGetTest.yaml for endpoint load tests.
  4. artillery run websocketTest.yaml for websocket load tests.

Chat test

This will send automated fake chat messages to your localhost instance. Edit the messages, usernames or point to a different instance.

  1. npm install
  2. node fakeChat.js

Public Testing

Run ./test-local.sh and it'll create a public URL that you can access your local Owncast instance from. This is particularly useful for testing mobile and other external devices, as well as webhooks. Make sure Owncast is running under port 8080.

If you'd like your own custom hostname that uses your username follow the instructions printed, otherwise use auto-generated name printed to the console for testing.

$ ./test/test-local.sh
Please wait. Making the local server port 8080 available at https://oc-gabek-develop.serveo.net
Forwarding HTTP traffic from https://oc-gabek-develop.serveo.net