You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
owncast/test
dependabot[bot] 5dae071c00
Bump follow-redirects from 1.15.4 to 1.15.6 in /test/load (#3632)
4 days ago
..
automated Bump es5-ext from 0.10.53 to 0.10.63 in /test/automated/api (#3603) 1 month ago
fixture chore(test): add followers fixture test data 1 month ago
load Bump follow-redirects from 1.15.4 to 1.15.6 in /test/load (#3632) 4 days ago
.gitignore Point fakechat test script to localhost by default. Commit package.json 3 years ago
README.md chore(tests): add readme note about remote host testing 11 months ago
fakeChat.js Chat refactor + persistent backing chat users (#1163) 3 years ago
ocTestStream.sh Fix HLS automatic test (#2572) 1 year ago
package-lock.json Bump node-fetch from 2.6.6 to 2.6.7 in /test (#1700) 2 years ago
package.json Bump node-fetch from 2.6.6 to 2.6.7 in /test (#1700) 2 years ago
populateContent.sh Change host in fixture script 2 years ago
test-local.sh chore: add local<->public test script 12 months ago
userColorsTest.js Update chat styling 3 years ago

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