"use strict";

const fs = require("fs");

let qUnit = require("qunit");
qUnit.setup({
    log: {
        errors: true,
        tests: true,
        globalSummary: true,
        testing: true
    },
    maxBlockDuration: 2000
});

qUnit.run(fs.readdirSync("test")
    .filter(name => -1 === ["adapter", "qunit.js"].indexOf(name))
    .map(name => {
        return {
            code: "test/adapter/qunit.js",
            tests: "test/" + name
        };
    }), err => {
        if (err) {
            console.log(err);
        }
    });

@@ -233,16 +233,64 @@
 nit.run(
+%7B%0A    code: %22test/adapter/qunit.js%22,%0A    tests: 
 fs.readd
@@ -304,16 +304,20 @@
 %22test%22)%0A
+    
     .fil
@@ -374,16 +374,20 @@
 (name))%0A
+    
     .map
@@ -399,121 +399,25 @@
  =%3E 
-%7B%0A        return %7B%0A            code: %22test/adapter/qunit.js%22,%0A            tests: %22test/%22 + name%0A        %7D;%0A    %7D)
+%22test/%22 + name)%0A%7D
 , er
@@ -427,20 +427,16 @@
 %3E %7B%0A    
-  
-  
 if (err)
@@ -446,20 +446,16 @@
         
-   
- 
 console.
@@ -472,18 +472,11 @@
     
-    %7D%0A    
+%7D%0A
 %7D);%0A
+%0A

Simplify tests execution