dart-sdk/tests
2017-05-19 13:40:46 +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 files. 2017-05-19 13:40:46 +02:00
compiler Implement generalized function types. 2017-05-19 11:03:24 +02:00
corelib Make json-maps implement Map<String, dynamic>. 2017-05-02 14:51:32 +02:00
corelib_strong Adjust types in SplayTree implementation and some strong tests to 2017-05-11 17:27:32 -07:00
html Update status file for similar bug as #29594 2017-05-10 19:16:15 -07:00
isolate Do not list Timeout as the only test outcome in isolate.status. 2017-05-04 11:26:37 +02:00
kernel Remove the argument from main in a test 2017-05-11 14:55:00 +02:00
language Update status files. 2017-05-19 13:40:46 +02:00
language_strong Fix nullaware dynamic dispatch 2017-05-15 20:47:10 -07:00
lib Update status files. 2017-05-19 13:40:46 +02:00
lib_strong DDC fixes for SpeechRecognition 2017-05-18 17:05:51 -07:00
standalone Refactor and clean up the status file parsing code. - Make the parser less error tolerant. The expression parser used to ignore any unrecognized tokens, which means a status like "RuntimeError CompileError" (not the missing comma) was parsed as simply "RuntimeError", which seems bad. Now it reports an error. Fixed a couple of status files that thought they were setting statuses that they weren't (!). 2017-05-18 12:42:52 -07:00
utils Handle symbol literals in closed_world2_test 2017-05-03 10:41:59 +02:00
light_unittest.dart Format all tests. 2017-04-17 14:53:02 -07:00
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.