dart-sdk/tests
2016-03-09 14:05:14 -08:00
..
_chrome Improve handling of intentionally broken links in test scripts. 2014-11-04 15:00:00 +00:00
benchmark_smoke Update status of cpsir tests in checked mode: skipping for now, since more than 2016-03-07 10:20:41 -08:00
co19 Add back CssCharsetRule for Safari support 2016-03-08 14:40:57 -08:00
compiler dart2js cps: Inline constructor bodies that are only called once. 2016-03-09 14:00:25 +01:00
corelib Update status for a slow test and a crashing test. 2016-03-07 17:59:16 +01:00
html Remove websql_test/functional suppression 2016-03-09 14:05:14 -08:00
isolate Update status of cpsir tests in checked mode: skipping for now, since more than 2016-03-07 10:20:41 -08:00
language Type check for-in statements. 2016-03-08 11:25:49 -08:00
lib Skip mirror tests more generally for $mode == product instead of $runtime == dart_product. 2016-03-03 10:06:59 -08:00
standalone More MIPS status cleanup. 2016-03-07 16:37:48 -08:00
try Change the order the classes are expected to be found by serialize_test 2015-12-07 16:29:26 +01:00
utils Type check for-in statements. 2016-03-08 11:25:49 -08:00
light_unittest.dart
README Remove old java-based analyzer from test scripts and status files 2015-12-17 14:44:57 +01:00

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.