let tests = [
  // what result to expect, string to match against
  [ true, '/home/mike/git/work/stripes-experiments/stripes-connect' ],
  [ true, '/home/mike/git/work/stripes-loader/' ],
  [ true, '/home/mike/git/work/stripes-experiments/okapi-console/' ],
  [ true, '/home/mike/git/work/stripes-experiments/stripes-core/src/' ],
  [ false, '/home/mike/git/work/stripes-experiments/stripes-core/node_modules/camelcase' ],
];

// The regexp used in webpack.config.base.js to choose which source files get transpiled
let re = /\/stripes-/;

for (let i = 0; i < tests.length; i++) {
  var test = tests[i];
  var expected = test[0];
  var string = test[1];
  var result = !!string.match(re);
  print(i + ": '" + string + "': " +
        "expected " + expected + ", got " + result + ": " +
        (result == expected ? "OK" : "FAIL"));
}

@@ -531,16 +531,32 @@
 ripes-/;
+%0Alet failed = 0;
 %0A%0Afor (l
@@ -842,10 +842,229 @@
 AIL%22));%0A
+  if (result != expected) failed++;%0A%7D%0A%0Alet passed = tests.length - failed;%0Aprint(%22Passed %22 + passed + %22 of %22 + tests.length + %22 tests%22);%0Aif (failed %3E 0) %7B%0A  print(%22FAILED %22 + failed + %22 of %22 + tests.length + %22 tests%22);%0A
 %7D%0A

Add summary lines to output