Chromium Code Reviews| 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 Also: | |
| 11 - https://code.google.com/p/dart/wiki/TestingDart2js | |
| 12 - https://code.google.com/p/dart/wiki/Building#Testing | |
| 13 | |
| 14 Examples | |
| 15 -------- | |
| 16 | |
| 17 Build everything once before testing: | |
| 18 | |
| 19 ../tools/build.py --mode release --arch x64 | |
| 20 | |
| 21 Run a subset of the dartanalyzer tests: | |
|
karlklose
2014/09/01 09:08:18
I think these examples are to specific for this fi
| |
| 22 | |
| 23 ../tools/test.py \ | |
| 24 --compiler dartanalyzer \ | |
| 25 --runtime none \ | |
| 26 --progress color \ | |
| 27 --arch x64 \ | |
| 28 --mode release \ | |
| 29 --host-checked \ | |
|
karlklose
2014/09/01 09:08:18
host-checked is only important for dart2js, where
| |
| 30 --checked \ | |
| 31 --report --time \ | |
| 32 --tasks 6 \ | |
| 33 language/issue18628 | |
|
karlklose
2014/09/01 09:08:18
'language/issue18628' -> 'language'?
But, as said
| |
| 34 | |
| 35 Run a subset of the vm tests in checked mode: | |
| 36 | |
| 37 ../tools/test.py \ | |
| 38 --compiler none \ | |
| 39 --runtime vm \ | |
| 40 --progress color \ | |
| 41 --arch x64 \ | |
| 42 --mode release \ | |
| 43 --host-checked \ | |
| 44 --checked \ | |
| 45 --report --time \ | |
| 46 --tasks 6 \ | |
| 47 language/issue18628 | |
| 48 | |
| 49 Run a subset of the dart2js tests in checked mode: | |
| 50 | |
| 51 ../tools/test.py \ | |
| 52 --compiler dart2js \ | |
| 53 --runtime chrome \ | |
| 54 --progress color \ | |
| 55 --arch x64 \ | |
| 56 --mode release \ | |
| 57 --host-checked \ | |
| 58 --checked \ | |
| 59 --report --time \ | |
| 60 --tasks 6 \ | |
| 61 language/issue18628 | |
| 62 | |
| 63 Create New Tests | |
| 64 ================ | |
| 65 | |
| 66 See comments above | |
| 67 | |
| 68 factory StandardTestSuite.forDirectory | |
| 69 | |
| 70 in | |
| 71 | |
| 72 ../tools/testing/dart/test_suite.dart | |
| 73 | |
| 74 for the default test directory layout. By default test-file names must | |
| 75 end in "_test.dart", but some test suites, such as ./co19, subclass | |
| 76 StandardTestSuite and override this default. | |
| 77 | |
| 78 See comments at the beginning of | |
| 79 | |
| 80 ../tools/testing/dart/multitest.dart | |
| 81 | |
| 82 for how to create tests that pass by failing with a known error. For | |
| 83 example, | |
| 84 | |
| 85 ... | |
| 86 int x = "not an int"; /// 01: static type warning | |
| 87 ... | |
| 88 | |
| 89 as part of a test will only pass the "--compiler dartanalyzer" test if | |
| 90 the assignment generates a static type warning. | |
| OLD | NEW |