dart-sdk/tests
2017-06-24 13:41:39 +02:00
..
_chrome Format all tests. 2017-04-17 14:53:02 -07:00
benchmark_smoke Spelling fixes e to i. 2017-06-24 13:41:39 +02:00
co19 Update co19 browser status for flaky tests 2017-06-23 11:20:29 +02:00
compiler Spelling fixes e to i. 2017-06-24 13:41:39 +02:00
corelib Spelling fixes e to i. 2017-06-24 13:41:39 +02:00
corelib_strong Spelling fixes e to i. 2017-06-24 13:41:39 +02:00
html Spelling fixes e to i. 2017-06-24 13:41:39 +02:00
isolate Remove MIPS support 2017-06-22 08:49:22 -07:00
kernel Remove the argument from main in a test 2017-05-11 14:55:00 +02:00
language Spelling fixes e to i. 2017-06-24 13:41:39 +02:00
language_strong Spelling fixes e to i. 2017-06-24 13:41:39 +02:00
lib Spelling fixes e to i. 2017-06-24 13:41:39 +02:00
lib_strong Spelling fixes e to i. 2017-06-24 13:41:39 +02:00
standalone Spelling fixes e to i. 2017-06-24 13:41:39 +02:00
utils All strong mode cleaning of dart2js. 2017-06-19 14:06:38 +02:00
light_unittest.dart Format all tests. 2017-04-17 14:53:02 -07:00
README

Run Existing Tests
==================

See the output of

  ../tools/test.py --help

for how to run tests.

See also

  https://code.google.com/p/dart/wiki/Building#Testing

for detailed examples.

Create New Tests
================

See comments above

  factory StandardTestSuite.forDirectory

in

  ../tools/testing/dart/test_suite.dart

for the default test directory layout. By default test-file names must
end in "_test.dart", but some test suites, such as ./co19, subclass
StandardTestSuite and override this default.

See comments at the beginning of

  ../tools/testing/dart/multitest.dart

for how to create tests that pass by failing with a known error. For
example,

  ...
  int x = "not an int"; /// 01: static type warning
  ...

as part of a test will only pass the "--compiler dart2analyzer" test if
the assignment generates a static type warning.