From f689e9bd2afab7cdf3974335ea2662aad3674913 Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum <nweiz@google.com> Date: Tue, 3 May 2016 14:30:47 -0700 Subject: [PATCH] Document --name and --plain-name in the README. Closes #427 R=kevmoo@google.com Review URL: https://codereview.chromium.org//1950673002 . --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index be8a6346..e33cf788 100644 --- a/README.md +++ b/README.md @@ -140,6 +140,12 @@ The test runner considers any file that ends with `_test.dart` to be a test file. If you don't pass any paths, it will run all the test files in your `test/` directory, making it easy to test your entire application at once. +You can select specific tests cases to run by name using `pub run test -n "test +name"`. The string is interpreted as a regular expression, and only tests whose +description (including any group descriptions) match that regular expression +will be run. You can also use the `-N` flag to run tests whose names contain a +plain-text string. + By default, tests are run in the Dart VM, but you can run them in the browser as well by passing `pub run test -p chrome path/to/test.dart`. `test` will take care of starting the browser and loading the tests, and all the results will be -- GitLab