| OLD | NEW |
| 1 # Test filter files | 1 # Test filter files |
| 2 | 2 |
| 3 ## Summary | 3 ## Summary |
| 4 | 4 |
| 5 This directory contains files that list tests that are not yet ready to run in a | 5 This directory contains files that list tests that are not yet ready to run in a |
| 6 particular mode. For example - the `site-per-process.browser_tests.filter` file | 6 particular mode. For example - the `site-per-process.browser_tests.filter` file |
| 7 lists tests that should be excluded when running `browser_tests` in | 7 lists tests that should be excluded when running `browser_tests` in |
| 8 `--site-per-process` mode. | 8 `--site-per-process` mode. |
| 9 | 9 |
| 10 ## File syntax | 10 ## File syntax |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 $ out/dbg/content_browsertests \ | 51 $ out/dbg/content_browsertests \ |
| 52 --site-per-process \ | 52 --site-per-process \ |
| 53 --test-launcher-filter-file=testing/buildbot/filters/site-per-process.conten
t_browsertests.filter | 53 --test-launcher-filter-file=testing/buildbot/filters/site-per-process.conten
t_browsertests.filter |
| 54 ``` | 54 ``` |
| 55 | 55 |
| 56 When running tests on Android, the test filter file can be specified using | 56 When running tests on Android, the test filter file can be specified using |
| 57 `--gtest-filter-file` command line flag. Example test invocation: | 57 `--gtest-filter-file` command line flag. Example test invocation: |
| 58 | 58 |
| 59 ```bash | 59 ```bash |
| 60 $ out/android/bin/run_content_browsertests \ | 60 $ out/android/bin/run_content_browsertests \ |
| 61 --test-arguments=--site-per-process \ | 61 --site-per-process \ |
| 62 --gtest-filter-file=testing/buildbot/filters/site-per-process.content_browse
rtests.filter | 62 --gtest-filter-file=testing/buildbot/filters/site-per-process.content_browse
rtests.filter |
| 63 ``` | 63 ``` |
| 64 | 64 |
| 65 ## Applicability | 65 ## Applicability |
| 66 | 66 |
| 67 Test filter files described here are currently only supported for gtest-based | 67 Test filter files described here are currently only supported for gtest-based |
| 68 tests. | 68 tests. |
| 69 | 69 |
| 70 For excluding layout tests when running with a particular command line flag, see | 70 For excluding layout tests when running with a particular command line flag, see |
| 71 `third_party/WebKit/LayoutTests/FlagExpectations/README.txt`. | 71 `third_party/WebKit/LayoutTests/FlagExpectations/README.txt`. |
| 72 | 72 |
| 73 ## Adding new test filter files | 73 ## Adding new test filter files |
| 74 | 74 |
| 75 Please use the following conventions when naming the new file: | 75 Please use the following conventions when naming the new file: |
| 76 | 76 |
| 77 - Please include the name of the test executable (e.g. | 77 - Please include the name of the test executable (e.g. |
| 78 `content_browsertests`). | 78 `content_browsertests`). |
| 79 - Please use `.filter` suffix. | 79 - Please use `.filter` suffix. |
| 80 - Feel free to add other relevant things into the file name (e.g. the mode the | 80 - Feel free to add other relevant things into the file name (e.g. the mode the |
| 81 file applies to - for example `site-per-process`). | 81 file applies to - for example `site-per-process`). |
| 82 | 82 |
| 83 When adding a new file, please update `//testing/buildbot/filters/BUILD.gn`. | 83 When adding a new file, please update `//testing/buildbot/filters/BUILD.gn`. |
| 84 | 84 |
| 85 [gtest_filter]: https://github.com/google/googletest/blob/master/googletest/docs
/AdvancedGuide.md#running-a-subset-of-the-tests | 85 [gtest_filter]: https://github.com/google/googletest/blob/master/googletest/docs
/AdvancedGuide.md#running-a-subset-of-the-tests |
| OLD | NEW |