test-inventoryTest metadata from source code, not from test results.
Lists every test declaration in a Playwright or Vitest suite as JSON, by reading the code. Nothing is run.
Lists every test declaration in a Playwright or Vitest suite as JSON, by reading the code. Nothing is run.
One JSON document per scan. For each test it has the title, the file, the lines and columns, the describes around it, the tags, the annotations and the state: active, skipped, fixme, todo, expected to fail, or not loaded when Playwright would refuse the file. For a state that only applies sometimes, it has the condition and the reason. Each test also has an id that stays the same when the test moves to another line, and a hash of its body that changes when its code does, but not when only its formatting or comments do.
npx test-inventory "tests/**/*.spec.ts" --framework playwright --output inventory.jsonRead getting started to try it, the examples for your setup, the query and CI recipes, or the output reference for every key.
If test-inventory is useful to you, star it on GitHub or sponsor its development. Stars help other teams find it, and sponsorship pays for the time that goes into new framework versions and fixes.