\href{https://www.npmjs.com/package/karma-jasmine-html-reporter}{\texttt{ }} \href{https://www.npmjs.com/package/karma-jasmine-html-reporter}{\texttt{ }}

Reporter that dynamically shows tests results at debug.\+html page.

Jasmine 1.\+3 is not supported. For Jasmine $<$ 3.\+0.\+0, use version 0.\+2.\+2



You can also run a describe block, or a single test.

\hypertarget{md_sfcode_node_modules_karma_jasmine_html_reporter_README_autotoc_md15762}{}\doxysection{Installation}\label{md_sfcode_node_modules_karma_jasmine_html_reporter_README_autotoc_md15762}
You can simply install {\ttfamily karma-\/jasmine-\/html-\/reporter} as a dev\+Dependency by\+: 
\begin{DoxyCode}{0}
\DoxyCodeLine{npm install karma-\/jasmine-\/html-\/reporter -\/-\/save-\/dev }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_karma_jasmine_html_reporter_README_autotoc_md15763}{}\doxysection{Configuration}\label{md_sfcode_node_modules_karma_jasmine_html_reporter_README_autotoc_md15763}

\begin{DoxyCode}{0}
\DoxyCodeLine{// karma.conf.js}
\DoxyCodeLine{module.exports = function(config) \{}
\DoxyCodeLine{  config.set(\{}
\DoxyCodeLine{    reporters: ['kjhtml']}
\DoxyCodeLine{  \});}
\DoxyCodeLine{\}; }

\end{DoxyCode}
 \hypertarget{md_sfcode_node_modules_karma_jasmine_html_reporter_README_autotoc_md15764}{}\doxysubsubsection{With options}\label{md_sfcode_node_modules_karma_jasmine_html_reporter_README_autotoc_md15764}
In combination with multiple reporters you may want to disable terminal messages because it\textquotesingle{}s already handled by another reporter.

{\itshape Example using the \textquotesingle{}karma-\/mocha-\/reporter\textquotesingle{} plugin}\+: 
\begin{DoxyCode}{0}
\DoxyCodeLine{// karma.conf.js}
\DoxyCodeLine{module.exports = function(config) \{}
\DoxyCodeLine{  config.set(\{}
\DoxyCodeLine{}
\DoxyCodeLine{    // Combine multiple reporters}
\DoxyCodeLine{    reporters: ['kjhtml', 'mocha'],}
\DoxyCodeLine{}
\DoxyCodeLine{    jasmineHtmlReporter: \{}
\DoxyCodeLine{      suppressAll: true, // Suppress all messages (overrides other suppress settings)}
\DoxyCodeLine{      suppressFailed: true // Suppress failed messages}
\DoxyCodeLine{    \}}
\DoxyCodeLine{}
\DoxyCodeLine{  \});}
\DoxyCodeLine{\}; }

\end{DoxyCode}


You can pass a list of reporters as a CLI argument too\+: 
\begin{DoxyCode}{0}
\DoxyCodeLine{karma start -\/-\/reporters kjhtml }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_karma_jasmine_html_reporter_README_autotoc_md15765}{}\doxysection{Develop}\label{md_sfcode_node_modules_karma_jasmine_html_reporter_README_autotoc_md15765}
There\textquotesingle{}s not much to this package.

\href{src/lib/adapter.js}{\texttt{ {\ttfamily adapter.\+js}}}, \href{src/lib/html.jasmine.reporter.js}{\texttt{ {\ttfamily html.\+jasmine.\+reporter.\+js}}}, and \href{src/css/jasmine.css}{\texttt{ {\ttfamily jasmine.\+css}}} are copied with small adjustments from \href{https://github.com/jasmine/jasmine/blob/master/lib/jasmine-core/boot.js}{\texttt{ {\ttfamily jasmine/lib/jasmine-\/core/boot.\+js}}} and \href{https://github.com/jasmine/jasmine/blob/master/lib/jasmine-core/jasmine-html.js}{\texttt{ {\ttfamily jasmine/lib/jasmine-\/core/jasmine-\/html.\+js}}}, and \href{https://github.com/jasmine/jasmine/blob/master/lib/jasmine-core/jasmine.css}{\texttt{ {\ttfamily jasmine/lib/jasmine-\/core/jasmine.\+css}}} respectively.

Just pull over changes from Jasmine as needed. There is a script to help with that; just run {\ttfamily npm run build} and review the changes. Specifically, \href{src/lib/adapter.js}{\texttt{ {\ttfamily adapter.\+js}}} needs a lot of manual removals. 