Q:

Setting up html report with Jasmine & Node.js

I'm new to BDD and Jasmine. I have been following some tutorials and one feature I really like is the HTML Reporter that comes with it.
I'm trying to set Jasmine in a project running Node.js. I've followed their instructions for installing the npm module, found on their Github page
I am able to run tests on the console, but I'm looking to also have the HTML reporter running those tests. I tried to include the static example HTML but that doesn't work.
I haven't been able to find a solution to this issue. I'm starting to think that there is no solution for displaying Jasmine HTML reports with Node.js
My aim is to run jasmine in the console and be able to then access the report without having to run any extra tool, such as Allure.
Any help would be greatly appreciated!

A:

If you want an HTML report you may use a package that generates it for you. 
You can search directly into the NPM website for one that you most like or you can use my suggestion https://www.npmjs.com/package/jasmine-pretty-html-reporter
The setup is very simple:
var Jasmine = require('jasmine');
var HtmlReporter = require('jasmine-pretty-html-reporter').Reporter;
var jasmine = new Jasmine();

jasmine.loadConfigFile('./spec/support/jasmine.json');

// options object
jasmine.addReporter(new HtmlReporter({
  path: path.join(__dirname,'results')
}));

jasmine.execute();

The generated page is like this sample: https://stuisme.github.io/jasmine-pretty-html-reporter/sample-reports/report-passing.html

