Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

433 B
Raw Blame
# Build and run K6 script by namespace and scenario
[positional-arguments]
run namespace scenario *extra_args:
    #! /usr/bin/env bash
    pnpm run build --input src/{{ namespace }}/{{ scenario }}.test.ts
    k6 run "${@:3}" ./dist/{{ namespace }}/{{ scenario }}.test.js

# List namespaces and scenarios
@ls:
    echo "Openverse k6 namespaces and scenarios"
    tree src -P '*.test.ts' --noreport | cut -c 5- | sed 's/\.test\.ts//'