dart-sdk/tests
2017-03-23 14:02:25 -07:00
..
_chrome
benchmark_smoke Remove status file sections for the CPS IR. 2017-02-28 17:11:19 +01:00
co19 Allow literal symbols as constant expressions. 2017-03-23 17:42:48 +01:00
compiler Line numbers changed due to formatting 2017-03-23 14:02:25 -07:00
corelib Re-land "Format all multitests" 2017-03-23 12:40:21 -07:00
corelib_strong Re-land "Format all multitests" 2017-03-23 12:40:21 -07:00
html Re-land "Format all multitests" 2017-03-23 12:40:21 -07:00
isolate Re-land "Format all multitests" 2017-03-23 12:40:21 -07:00
kernel Switch -c dartk/dartkp configuration to use fasta. 2017-02-26 20:39:02 +01:00
language Re-land "Format all multitests" 2017-03-23 12:40:21 -07:00
language_strong Fix for dcall on callable class 2017-03-23 13:14:58 -07:00
lib Re-land "Format all multitests" 2017-03-23 12:40:21 -07:00
lib_strong Re-land "Format all multitests" 2017-03-23 12:40:21 -07:00
standalone Re-land "Format all multitests" 2017-03-23 12:40:21 -07:00
utils Remove status file sections for the CPS IR. 2017-02-28 17:11:19 +01:00
light_unittest.dart
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.