anchor.diff:          expect(f.existsSync(), true);
           f.writeAsStringSync(_errorText);
         }).then((_) {
  +        _setupPub();
           return tuneup.processArgs(['check'], directory: foo);
         }).then((_) {
           fail('expected analysis errors');
  
positive.code:   });
  }
  
  class _Logger implements CliLogger {
    StringBuffer _out = new StringBuffer();
    StringBuffer _err = new StringBuffer();
  
negative.code:       return tuneup.processArgs(['init'], directory: foo).then((_) {
          expect(new File('foo/bin/helloworld.dart').existsSync(), true);
        }).then((_) {
          _setupPub();
          return tuneup.processArgs(['check'], directory: foo);
        }).then((_) {
          expect(logger.out, contains('No issues found; analyzed 1 source file in'));
  