Thursday 4 May 2017

How to save tape results in object using nodejs

I am trying to save some tests results (using tape https://www.npmjs.com/package/tape) in nodejs into a javascript object, like a map, list or just a custom object. I was looking around test.createStream({ objectMode: true }) but I can seem to find a way on where to integrate the tests and gather the assert results. Also, I am noob regarding tape or javascipt :) Thanks

test.createStream({ objectMode: true }).on('data', function (row) {
    console.log(JSON.stringify(row))
});


via Roxana

No comments:

Post a Comment