test method

void test({
  1. dynamic files,
  2. String? name,
  3. String? plainName,
  4. dynamic platformSelector,
  5. int? concurrency,
  6. int? pubServe,
  7. RunOptions? runOptions,
})

Run the tests in the current package. See the test package.

files - the files or directories to test. This can a path (String), File, or list of paths or files.

name is substring of the name of the test to run. Regular expression syntax is supported. plainName is a plain-text substring of the name of the test to run. platformSelector is the platform(s) on which to run the tests. This parameter can be a String or a List. Available values are vm (default), dartium, content-shell, chrome, phantomjs, firefox, safari. concurrency controls the number of concurrent test suites run (defaults to 4). pubServe is the port of a pub serve instance serving test/.

Implementation

void test(
    {dynamic files,
    String? name,
    String? plainName,
    dynamic platformSelector,
    int? concurrency,
    int? pubServe,
    RunOptions? runOptions}) {
  _test.run(
      _buildArgs(
          files: files,
          name: name,
          plainName: plainName,
          selector: platformSelector,
          concurrency: concurrency,
          pubServe: pubServe),
      script: 'test',
      runOptions: runOptions);
}