dart-sdk/tests
2014-11-04 15:00:00 +00:00
..
_chrome Improve handling of intentionally broken links in test scripts. 2014-11-04 15:00:00 +00:00
benchmark_smoke using unittest via package import 2014-04-09 19:42:11 +00:00
co19 Improve browser testing scripts to better handle tests that reload themselves. 2014-11-04 14:46:45 +00:00
compiler Support async/await in the dart2js frontend. 2014-11-04 12:21:40 +00:00
corelib Reapply "Port regexp tests from V8 to Dart." 2014-10-30 11:34:18 +00:00
html Improve handling of intentionally broken links in test scripts. 2014-11-04 15:00:00 +00:00
isolate Per isolate package root. 2014-09-23 05:46:14 +00:00
language Fix type analysis of the keyword "dynamic". 2014-11-04 04:13:06 +00:00
lib Fix issue 21474 in mirrors. 2014-10-31 23:16:11 +00:00
standalone Only lower-case ContentType's values if the name is 'charset'. 2014-11-03 12:34:08 +00:00
try Dart2js is slow when compiled in checked mode. 2014-11-04 13:58:20 +00:00
utils Roll v8 deps to version 3.26.31.10 2014-07-08 12:34:55 +00:00
light_unittest.dart Upgrading tests with unittest deprecations 2014-03-31 18:33:18 +00:00
README Add language tests for Issue 18628. 2014-09-03 18:51:25 +00: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 dartanalyzer" test if
the assignment generates a static type warning.