test function

Future<void> test(
  1. IShell shell
)

Unit Tests the Dart source files for the current dart project

since 0.0.1

Implementation

Future<void> test(IShell shell) async {
  await _whenDartProject('Unit Test', shell, () async {
    _log.info('Unit Testing...');
    var extraFlags = shell.supportsColorOutput() ? '--color' : '';
    await shell.run('dart test $extraFlags'.trim());
  });
}