OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 import '../descriptor.dart' as d; |
| 6 import '../test_pub.dart'; |
| 7 |
| 8 main() { |
| 9 initConfig(); |
| 10 |
| 11 integration("build --all finds assets in all buildable directories", () { |
| 12 d.dir(appPath, [ |
| 13 d.appPubspec(), |
| 14 d.dir('benchmark', [ |
| 15 d.file('file.txt', 'benchmark') |
| 16 ]), |
| 17 d.dir('bin', [ |
| 18 d.file('file.txt', 'bin') |
| 19 ]), |
| 20 d.dir('example', [ |
| 21 d.file('file.txt', 'example') |
| 22 ]), |
| 23 d.dir('test', [ |
| 24 d.file('file.txt', 'test') |
| 25 ]), |
| 26 d.dir('web', [ |
| 27 d.file('file.txt', 'web') |
| 28 ]), |
| 29 d.dir('unknown', [ |
| 30 d.file('file.txt', 'unknown') |
| 31 ]) |
| 32 ]).create(); |
| 33 |
| 34 schedulePub(args: ["build", "--all"], |
| 35 output: new RegExp(r"Built 5 files!")); |
| 36 |
| 37 d.dir(appPath, [ |
| 38 d.dir('build', [ |
| 39 d.dir('benchmark', [ |
| 40 d.file('file.txt', 'benchmark') |
| 41 ]), |
| 42 d.dir('bin', [ |
| 43 d.file('file.txt', 'bin') |
| 44 ]), |
| 45 d.dir('example', [ |
| 46 d.file('file.txt', 'example') |
| 47 ]), |
| 48 d.dir('test', [ |
| 49 d.file('file.txt', 'test') |
| 50 ]), |
| 51 d.dir('web', [ |
| 52 d.file('file.txt', 'web') |
| 53 ]), |
| 54 // Only includes known buildable directories. |
| 55 d.nothing('unknown') |
| 56 ]) |
| 57 ]).validate(); |
| 58 }); |
| 59 } |
OLD | NEW |