dart-sdk/tests
2017-06-22 15:36:30 +02:00
..
_chrome Format all tests. 2017-04-17 14:53:02 -07:00
benchmark_smoke Dart SDK Spelling b, c, and d. 2017-05-01 08:28:10 +02:00
co19 Update status file for dartk-checked (status files are out-dated due to builder being on FYI) 2017-06-22 15:36:30 +02:00
compiler Add closure_test for kernel based members 2017-06-21 09:52:46 +02:00
corelib Basic support for dev_compiler in test.dart. 2017-06-21 13:19:28 -07:00
corelib_strong Basic support for dev_compiler in test.dart. 2017-06-21 13:19:28 -07:00
html dart gardening: webgl starts working after chrome roll? 2017-06-07 17:50:06 -07:00
isolate Add negation to single-identifier tests in status files. 2017-06-02 10:38:14 +02:00
kernel Remove the argument from main in a test 2017-05-11 14:55:00 +02:00
language Update status file for dartk-checked (status files are out-dated due to builder being on FYI) 2017-06-22 15:36:30 +02:00
language_strong Basic support for dev_compiler in test.dart. 2017-06-21 13:19:28 -07:00
lib Update status file for dartk-checked (status files are out-dated due to builder being on FYI) 2017-06-22 15:36:30 +02:00
lib_strong Fix mocked operator methods 2017-06-21 16:54:08 -07:00
standalone Added timeout parameter to RawSocket and Socket connect, which allows for the specification of a maximum time to wait for a valid connection to be established. 2017-06-21 14:31:52 -07: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.