blob: 32ee191439ef0735ec5671c9f5cfca708a50e8f4 [file] [log] [blame]
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import '../../lib/src/exit_codes.dart' as exit_codes;
import '../descriptor.dart' as d;
import '../test_pub.dart';
main() {
initConfig();
integration("build --all with no buildable directories", () {
d.appDir().create();
schedulePub(args: ["build", "--all"],
error: 'There are no buildable directories.\n'
'The supported directories are "benchmark", "bin", "example", '
'"test" and "web".',
exitCode: exit_codes.DATA);
});
integration("build --all --format json with no buildable directories", () {
d.appDir().create();
schedulePub(args: ["build", "--all", "--format", "json"],
outputJson: {'error':
'There are no buildable directories.\n'
'The supported directories are "benchmark", "bin", "example", '
'"test" and "web".'
},
exitCode: exit_codes.DATA);
});
}