var path = require('path');
var fs = require('fs');

global.adapter = require('./adapter-a');

describe('promises-tests', function () {
  var testsDir = path.join(path.dirname(require.resolve('promises-aplus-tests/lib/programmaticRunner.js')), 'tests');
  var testFileNames = fs.readdirSync(testsDir);

  testFileNames.forEach(function (testFileName) {
    if (path.extname(testFileName) === ".js") {
      var testFilePath = path.join(testsDir, testFileName);
      require(testFilePath);
    }
  });
});
@@ -1,505 +1,105 @@
 var 
-path = require('path');%0Avar fs = require('fs');%0A%0Aglobal.adapter = require('./adapter-a');%0A%0Adescribe('promises-tests', function () %7B%0A  var testsDir = path.join(path.dirname(require.resolve('promises-aplus-tests/lib/programmaticRunner.js')), 'tests');%0A  var testFileNames = fs.readdirSync(testsDir
+tests = require('promises-aplus-tests');%0Avar adapter = require('./adapter-a'
 );%0A%0A
-  
 test
-FileNames.forEach(function (testFileName) %7B%0A    if (path.extname(testFileName) === %22.js%22) %7B%0A      var testFilePath = path.join(testsDir, testFileName);%0A      require(testFilePath);%0A    %7D%0A  %7D);%0A%7D
+s.mocha(adapter
 );

Use newer system for programatic runner