dart-sdk/tests
Mike Fairhurst 56d59dd967 Reland https://dart-review.googlesource.com/c/sdk/+/37441 with fixes
Change-Id: If8e2ec2ca1ac4f533dcb56b0c95d55e4a13e0598
Reviewed-on: https://dart-review.googlesource.com/39881
Reviewed-by: Paul Berry <paulberry@google.com>
2018-02-08 20:46:19 +00:00
..
angular
co19 Reland https://dart-review.googlesource.com/c/sdk/+/37441 with fixes 2018-02-08 20:46:19 +00:00
co19_2 Add a .gitignore for tests/co19_2/src 2018-02-05 00:08:46 +00:00
compiler Update fasta parser to report constructor initializer errors 2018-02-08 18:08:40 +00:00
corelib Update status files for $compiler == fasta 2018-02-07 15:38:09 +00:00
corelib_2 Reland https://dart-review.googlesource.com/c/sdk/+/37441 with fixes 2018-02-08 20:46:19 +00:00
dart
html Update status files for $compiler == fasta 2018-02-07 15:38:09 +00:00
isolate Update status files for $compiler == fasta 2018-02-07 15:38:09 +00:00
kernel Update status for new dartk and dartkp builders 2018-02-08 16:52:56 +00:00
language Reland https://dart-review.googlesource.com/c/sdk/+/37441 with fixes 2018-02-08 20:46:19 +00:00
language_2 Reland https://dart-review.googlesource.com/c/sdk/+/37441 with fixes 2018-02-08 20:46:19 +00:00
lib Avoid patching with redirecting factories in vm-related patches 2018-02-08 14:11:50 +00:00
lib_2 Update status for new dartk and dartkp builders 2018-02-08 16:52:56 +00:00
search
standalone Update status files for $compiler == fasta 2018-02-07 15:38:09 +00:00
standalone_2 Reland https://dart-review.googlesource.com/c/sdk/+/37441 with fixes 2018-02-08 20:46:19 +00: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.