mirror of
https://github.com/HeyPuter/puter.git
synced 2025-12-30 17:50:00 -06:00
We want this to be fast enough that this benchmark doesn't take a long time, but part of the effort of making it faster will be running the benchmark repeatedly, and if it takes a long time then it will take longer for us to make it faster. This commit reduces the benchmark size for stat_intensive and write_intensive so that they don't take several minutes to complete.
Table of Contents
Summary
End-to-end tests for puter-js and http API.
How to use
Initialize the Client Config
-
Start a backend server:
npm start -
Copy
example-client-config.yamland edit theauth_tokenfield. (auth_tokencan be obtained by logging in on the webpage and typingputer.authTokenin Developer Tools's console)cp ./tests/example-client-config.yaml ./tests/client-config.yaml
Run API-Tester (test http API)
node ./tests/api-tester/apitest.js --unit --stop-on-failure
Run Playwright (test puter-js API with browser environment)
cd ./tests/playwright
npm install
npx playwright install --with-deps
npx playwright test
Run Vitest (test puter-js API with node environment)
npm run test:puterjs-api