mirror of
https://github.com/Unleash/unleash.git
synced 2024-10-28 19:06:12 +01:00
66d9d7a6d2
* refactor: fix missing tsconfig path in .eslintrc * refactor: require contextName and operator * refactor: fix crash on missing feature strategies * feat: add segments schema * feat: add segments client API * feat: add segments permissions * refactor: fail migration if things exist * refactor: remove strategy IDs from responses * refactor: allow empty description * refactor: add segment import/export * refactor: add perf scripts * refactor: add get segment fn * refactor: move constraint validation endpoint * refactor: use a separate id for segment updates * refactor: use PERF_AUTH_KEY for artillery * refactor: adjust segment seed size * refactor: add missing event data await * refactor: improve method order * refactor: remove request body limit override
717 B
717 B
/perf
Testing performance testing! Files of note:
# Configure the app URL and auth token to use in performance testing.
./env.sh
# Export all the data from the app at the configured URL.
./seed/export.sh
# Import previously exported data to the app instance.
./seed/import.sh
# Measure the GZIP response size for interesting endpoints.
./test/gzip.sh
# Run a few load test scenarios against the app.
./test/artillery.sh
See also the following scripts in package.json
:
# Fill the unleash_testing/seed schema with seed data.
$ yarn seed:setup
# Serve the unleash_testing/seed schema data, for exports.
$ yarn seed:serve
Edit files in /test/e2e/seed
to change the amount data.