dart-sdk/tests
2016-11-11 20:38:47 +01:00
..
_chrome
benchmark_smoke Add test harness option for app snapshots with unoptimized code. 2016-05-26 10:37:47 -07:00
co19 Revert "Status and DEPS files updated (#27792)" 2016-11-10 11:39:42 +01:00
compiler Add native_testing library to mock @Native classes 2016-11-10 14:16:08 -08:00
corelib DBC: When calling DRT_OptimizeInvokedFunction, patch the stack to have a stub instead of the to-be-optimized function as the caller. 2016-11-04 09:51:02 -07:00
html Add native_testing library to mock @Native classes 2016-11-10 14:16:08 -08:00
isolate Enable now-passing tests for Android precompilation 2016-10-21 12:16:47 -07:00
kernel VM: [Kernel] Ensure we have the correct try-index when translating finally blocks 2016-11-11 20:38:47 +01:00
language DBC: Fix bugs with array allocation 2016-11-08 15:45:31 -08:00
lib - Turn on canonicalization verification after a reload in debug mode. 2016-11-10 16:13:33 -08:00
standalone Remove getter p on double in the VM to control fractional precision. 2016-11-09 10:56:55 -08:00
utils Need to skip if runtime is drt. 2016-11-04 10:36:19 -07: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.