blob: 190173b8672877a99792146d6726c183702a93b6 [file] [log] [blame]
// Copyright (c) 2020, 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 'package:dartdev/dartdev.dart';
import 'package:test/test.dart';
import '../utils.dart';
void main() {
group('flag', help);
}
void help() {
TestProject p;
tearDown(() => p?.dispose());
test('--help', () {
p = project();
var result = p.runSync('--help');
expect(result.exitCode, 0);
expect(result.stderr, isEmpty);
expect(result.stdout, contains(DartdevRunner.dartdevDescription));
expect(result.stdout, contains('Usage: dartdev <command> [arguments]'));
expect(result.stdout, contains('Global options:'));
expect(result.stdout, contains('Available commands:'));
});
}