function buildMinJsTest_(testFile) {
  var compilerFlags = mergeObjects({
    export_local_property_definitions: null,
    externs: [config.LOVEFIELD_EXTERNS]
  }, getCompilerFlags('debug'));

  var dir = pathMod.dirname(testFile);
  var apiTester = pathMod.join(dir, 'api_tester.js');
  var testReporter = pathMod.join(dir, 'test_reporter.js');
  var base = pathMod.resolve(
      pathMod.join(config.CLOSURE_LIBRARY_PATH, 'closure/goog/base.js'));
  return new Promise(function(resolve, reject) {
    gulp.src([apiTester, testReporter, base, testFile]).pipe(closureCompiler({
      compilerPath: config.CLOSURE_COMPILER_PATH,
      fileName: new temporary.File().path,
      compilerFlags: compilerFlags
    })).on('end', resolve, reject);
  });
}
Builds tests that pull lovefield.min.js as an external script.
@param {string} testFile
@return {!IThenable}