/*
  Copyright 2018 Google LLC

  Use of this source code is governed by an MIT-style
  license that can be found in the LICENSE file or at
  https://opensource.org/licenses/MIT.
*/

const {parallel, series} = require('gulp');

const {lint} = require('./lint');
const {test_integration} = require('./test-integration');
const {test_node} = require('./test-node');

module.exports = {
  // The node and integration tests both muck with process.env.NODE_ENV, and
  // therefore can't be run in parallel.
  test: parallel(lint, series(test_node, test_integration)),
};

@@ -361,30 +361,261 @@
 ');%0A
-%0Amodule.exports =
+const logHelper = require('../infra/utils/log-helper');%0A%0Aasync function logSkip() %7B%0A  logHelper.log('Skipping test suite due to --skipTests');%0A%7D%0A%0Afunction runTestsUnlessSkipped() %7B%0A  if (global.cliOptions.skipTests) %7B%0A    return logSkip;%0A  %7D else
  %7B%0A  
+ 
+ 
 // T
@@ -684,17 +684,19 @@
 ENV,
- and
 %0A
+ 
   
+ 
 //
+ and
  the
@@ -734,13 +734,16 @@
 .%0A  
-test:
+  return
  par
@@ -790,13 +790,72 @@
 ration))
+;%0A  %7D%0A%7D%0A%0Amodule.exports = %7B%0A  test: runTestsUnlessSkipped()
 ,%0A%7D;%0A

Support for --skipTests (#2813)