dart-sdk/tests
2017-07-18 14:12:57 -07:00
..
co19 Removed Dartium test exceptions 2017-07-18 13:18:14 -07:00
compiler Delete old tests that aren't used and/or useful any more. 2017-07-18 14:12:57 -07:00
corelib Removed Dartium test exceptions 2017-07-18 13:18:14 -07:00
corelib_2 Re-land beginning Dart 2.0 test migration. 2017-07-17 12:40:18 -07:00
corelib_strong Re-land beginning Dart 2.0 test migration. 2017-07-17 12:40:18 -07:00
html Removed Dartium test exceptions 2017-07-18 13:18:14 -07:00
isolate Removed Dartium test exceptions 2017-07-18 13:18:14 -07:00
kernel Change how unresolved super sends are handled. 2017-06-29 12:21:49 +02:00
language Removed Dartium test exceptions 2017-07-18 13:18:14 -07:00
language_2 Re-land beginning Dart 2.0 test migration. 2017-07-17 12:40:18 -07:00
language_strong Fix DDC status 2017-07-18 13:59:57 -07:00
lib Removed Dartium test exceptions 2017-07-18 13:18:14 -07:00
lib_2 Re-land beginning Dart 2.0 test migration. 2017-07-17 12:40:18 -07:00
lib_strong Fix DDC status 2017-07-18 13:59:57 -07:00
standalone Removed Dartium test exceptions 2017-07-18 13:18:14 -07: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.