(options)
| 149 | } |
| 150 | |
| 151 | function runTests(options) { |
| 152 | return function() { |
| 153 | const results = []; |
| 154 | let promise = Promise.resolve(); |
| 155 | for (let pass = 0; pass < passes; pass++) { |
| 156 | // run each test with a 10 second pause between (to let GC do its stuff) |
| 157 | promise = promise.then(() => |
| 158 | runTest(options) |
| 159 | .then(result => { |
| 160 | results.push(result); |
| 161 | }) |
| 162 | .delay(sleepTime) |
| 163 | .then(() => { |
| 164 | try { |
| 165 | fs.unlinkSync(testFilename); |
| 166 | } catch (ex) { |
| 167 | console.error(`Error deleting file:${ex.message}`); |
| 168 | } |
| 169 | }) |
| 170 | .delay(1000) |
| 171 | ); |
| 172 | } |
| 173 | return promise.then(() => { |
| 174 | const testResult = reduceResults(results); |
| 175 | const key = options.workbook[0] + options.style[0] + options.str[0]; |
| 176 | resultSheet.lastRow.getCell(key).value = testResult; |
| 177 | }); |
| 178 | }; |
| 179 | } |
| 180 | |
| 181 | let mainPromise = Promise.resolve(); |
| 182 | // var mainPromise = execute(125, 'stream', 'plain', 'own'); |
no test coverage detected
searching dependent graphs…