morochena / rspec-json-to-html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Usage

const fs = require('fs');
const { jsonToHtml } = require('rspec-json-to-html');

const rspecJson = JSON.parse(fs.readFileSync('./rspec.json', 'utf8'));
const template = fs.readFileSync('./template.pug', 'utf8');

const html = jsonToHtml(rspecJson, template);

fs.writeFileSync('./report.html', html);

About


Languages

Language:Pug 87.9%Language:TypeScript 6.9%Language:JavaScript 5.2%