OLD | NEW |
(Empty) | |
| 1 Run Existing Tests |
| 2 ================== |
| 3 |
| 4 See the output of |
| 5 |
| 6 ../tools/test.py --help |
| 7 |
| 8 for how to run tests. |
| 9 |
| 10 See also |
| 11 |
| 12 https://code.google.com/p/dart/wiki/Building#Testing |
| 13 |
| 14 for detailed examples. |
| 15 |
| 16 Create New Tests |
| 17 ================ |
| 18 |
| 19 See comments above |
| 20 |
| 21 factory StandardTestSuite.forDirectory |
| 22 |
| 23 in |
| 24 |
| 25 ../tools/testing/dart/test_suite.dart |
| 26 |
| 27 for the default test directory layout. By default test-file names must |
| 28 end in "_test.dart", but some test suites, such as ./co19, subclass |
| 29 StandardTestSuite and override this default. |
| 30 |
| 31 See comments at the beginning of |
| 32 |
| 33 ../tools/testing/dart/multitest.dart |
| 34 |
| 35 for how to create tests that pass by failing with a known error. For |
| 36 example, |
| 37 |
| 38 ... |
| 39 int x = "not an int"; /// 01: static type warning |
| 40 ... |
| 41 |
| 42 as part of a test will only pass the "--compiler dartanalyzer" test if |
| 43 the assignment generates a static type warning. |
OLD | NEW |