dart-sdk/tests
2017-04-05 16:07:32 +02:00
..
_chrome
benchmark_smoke Remove status file sections for the CPS IR. 2017-02-28 17:11:19 +01:00
co19 Create separate scopes for constructors, setters, and other members. 2017-04-05 16:07:32 +02:00
compiler Make lines and columns one-based in SourceLocation. 2017-04-05 15:19:05 +02:00
corelib Adjust status files to account for running the Dart test cases through flutter engine on linux. 2017-04-03 16:35:09 -07:00
corelib_strong Update status files to fix the bots (TBR) 2017-03-30 13:19:42 -07:00
html Remove ie10 and opera sections from status files 2017-03-28 16:38:59 +02:00
isolate Adjust status files to account for running the Dart test cases through flutter engine on linux. 2017-04-03 16:35:09 -07:00
kernel Switch -c dartk/dartkp configuration to use fasta. 2017-02-26 20:39:02 +01:00
language Create separate scopes for constructors, setters, and other members. 2017-04-05 16:07:32 +02:00
language_strong Remove references to renamed test. 2017-04-04 09:51:29 +02:00
lib Special scope for labelled statements. 2017-04-04 14:29:25 +02:00
lib_strong Fix type checks and display for JS interop types. 2017-04-03 08:34:20 -07:00
standalone Create separate scopes for constructors, setters, and other members. 2017-04-05 16:07:32 +02:00
utils Remove status file sections for the CPS IR. 2017-02-28 17:11:19 +01: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.