Files
brave-core/docs/running_test_suites.md
T
Pete Miller c5cde404d4 Docs updates - introduce Running Tests, introduce Web UI Frontend, small fixes (#35231)
* Docs updates

- New test suites doc (how to run tests)
- New WebUI Frontend doc (basic introduction to Brave's different stack)
- Patches points to best practices
- bug fix in claude code skills doc
- Adjust docs/README.md to prioritize the index
- Preflight skill addition of missing test suites
2026-04-20 22:35:18 -07:00

690 B

Running tests

Usually you'll run:

  • npm run test -- [test suite] --filter="..."

where test suite is any of:

  • brave_components_unittests (C++ unit tests in brave/components)
  • brave_unit_tests (C++ unit tests anywhere else in brave/)
  • brave_browser_tests
  • chromium_unit_tests (Chromium C++ unit tests in src/)
  • browser_tests (Chromium browser tests in src/)

and --filter is the full name of the test (FixtureName.TestName) but you can use wildcards and combine filters with : e.g. --filter="*Foo*:*Bar*"

See chromium's docs/testing_in_chromium.md.

Javascript / Typescript unit tests

Isolated *.test.ts(x) tests are run via:

  • npm run test-unit -- [path blob filter]