tree: a1d21860112c35873f2cd611237b5fdae43c36c1 [path history] [tgz]
  5. android.asan.breakpad_unittests.filter
  6. android.asan.content_browsertests.filter
  7. android.asan.services_unittests.filter
  8. android.asan.unit_tests.filter
  9. bfcache.browser_tests.filter
  10. bfcache.content_browsertests.filter
  11. bfcache.content_unittests.filter
  12. bfcache.unit_tests.filter
  13. cast-linux.content_browsertests.filter
  14. chromeos.base_unittests.filter
  15. chromeos.browser_tests.filter
  16. chromeos.media_unittests.filter
  17. chromeos.ozone_unittests.filter
  18. chromeos.services_unittests.filter
  19. chromeos.unit_tests.filter
  20. code_coverage.browser_tests.filter
  21. fuchsia.base_perftests.filter
  22. fuchsia.content_unittests.filter
  23. fuchsia.mojo_unittests.filter
  24. fuchsia.net_perftests.filter
  25. fuchsia.net_unittests.filter
  26. fuchsia.services_unittests.filter
  27. fuchsia.ui_base_unittests.filter
  28. gpu.skiarenderer_vulkan_blink_web_tests.filter
  29. gpu.skiarenderer_vulkan_content_browsertests.filter
  30. mac_window_server_killers.browser_tests.filter
  33. navigation_loader_on_ui_browser_tests.filter
  34. navigation_loader_on_ui_content_browsertests.filter
  35. site_isolation_android.content_browsertests.filter
  36. skia_renderer.browser_tests.filter
  37. skia_renderer.content_browsertests.filter
  38. vulkan.content_browsertests.filter
  39. webrtc.content_unittests.filter
  40. webrtc_functional.browser_tests.filter
  41. webui_html_imports_polyfill_browser_tests.filter
  42. webui_html_imports_polyfill_interactive_ui_tests.filter

Test filter files


This directory contains files that list tests that are not yet ready to run in a particular mode. For example - the cast-linux.content_browsertests.filter file lists tests that should be excluded when running content_browsertests on the Cast device or bot (e.g. on 'Cast Linux).

File syntax

Contents of test filter files follow the syntax below:

  • Empty lines are ignored.
  • Any text after ‘#’ on each line is treated as comments and ignored.
  • All other lines specify a single test name pattern.
    • Negative patterns: Patterns prefixed with the ‘-’ character specify tests to exclude from a test run.
    • Positive patterns: All other patterns specify tests to include in a test run.

A test will be executed if and only if it matches any of the positive patterns but does not match any of the negative patterns (please see documentation of --gtest_filter for more details and examples).

Please see [] for discussion how “positive” and “negative” test patterns should be combined in presence of both the --gtest_filter and the --test-launcher-filter-file command line flags.

Example test filter file for excluding a set of tests:

# Get tests working w/ --site-per-process

# Get extension browsertests working w/ --site-per-process


When running tests on desktop platforms, the test filter file can be specified using --test-launcher-filter-file command line flag. Example test invocation (single filter file):

$ out/dbg/content_browsertests \

Example test invocation (multiple filter files, separated by ‘;’):

$ out/dbg/content_browsertests \

When running tests on Android, the test filter file can also be specified using --test-launcher-filter-file command line flag. Example test invocation:

$ out/android/bin/run_content_browsertests \


Test filter files described here are currently only supported for gtest-based tests.

For excluding layout tests when running with a particular command line flag, see third_party/WebKit/LayoutTests/FlagExpectations/README.txt.

Adding new test filter files

Please use the following conventions when naming the new file:

  • Please include the name of the test executable (e.g. content_browsertests).
  • Please use .filter suffix.
  • Feel free to add other relevant things into the file name (e.g. the mode the file applies to - for example site-per-process).

When adding a new filter file, you will need to:

  • Update //testing/buildbot/filters/
  • Add //testing/buildbot/filters:foo_filters to the appropriate test target.
  • Add '--test-launcher-filter-file=../../testing/buildbot/filters/foo.filter' to the desired test suite(s) in test_suites.pyl.
  • Run testing/buildbot/ to update .json files.