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

\href{https://travis-ci.org/karma-runner/karma-jasmine}{\texttt{ }} \href{https://david-dm.org/karma-runner/karma-jasmine}{\texttt{ }} \href{https://david-dm.org/karma-runner/karma-jasmine?type=dev}{\texttt{ }}

\href{https://github.com/karma-runner/karma-jasmine}{\texttt{ }} \href{https://github.com/semantic-release/semantic-release}{\texttt{ }}

\begin{quote}
Adapter for the \href{https://jasmine.github.io/}{\texttt{ Jasmine}} testing framework. \end{quote}
\hypertarget{md_sfcode_node_modules_karma_jasmine_README_autotoc_md15756}{}\doxysection{Installation}\label{md_sfcode_node_modules_karma_jasmine_README_autotoc_md15756}

\begin{DoxyCode}{0}
\DoxyCodeLine{npm install karma-\/jasmine -\/-\/save-\/dev }

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

\begin{DoxyCode}{0}
\DoxyCodeLine{// karma.conf.js}
\DoxyCodeLine{module.exports = function(config) \{}
\DoxyCodeLine{  config.set(\{}
\DoxyCodeLine{    frameworks: ['jasmine'],}
\DoxyCodeLine{}
\DoxyCodeLine{    files: [}
\DoxyCodeLine{      '*.js'}
\DoxyCodeLine{    ]}
\DoxyCodeLine{  \})}
\DoxyCodeLine{\} }

\end{DoxyCode}


If you want to run only some tests matching a given pattern you can do this in the following way


\begin{DoxyCode}{0}
\DoxyCodeLine{\$ karma start \&}
\DoxyCodeLine{\$ karma run -\/-\/ -\/-\/grep=<pattern> }

\end{DoxyCode}


or


\begin{DoxyCode}{0}
\DoxyCodeLine{module.exports = function(config) \{}
\DoxyCodeLine{  config.set(\{}
\DoxyCodeLine{    ...}
\DoxyCodeLine{    client: \{}
\DoxyCodeLine{      args: ['-\/-\/grep', '<pattern>'],}
\DoxyCodeLine{      ...}
\DoxyCodeLine{    \}}
\DoxyCodeLine{  \})}
\DoxyCodeLine{\} }

\end{DoxyCode}


If you want to pass configuration options directly to jasmine you can do this in the following way


\begin{DoxyCode}{0}
\DoxyCodeLine{module.exports = function(config) \{}
\DoxyCodeLine{  config.set(\{}
\DoxyCodeLine{    client: \{}
\DoxyCodeLine{      jasmine: \{}
\DoxyCodeLine{        random: true,}
\DoxyCodeLine{        seed: '4321',}
\DoxyCodeLine{        oneFailurePerSpec: true,}
\DoxyCodeLine{        failFast: true,}
\DoxyCodeLine{        timeoutInterval: 1000}
\DoxyCodeLine{      \}}
\DoxyCodeLine{    \}}
\DoxyCodeLine{  \})}
\DoxyCodeLine{\} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_karma_jasmine_README_autotoc_md15758}{}\doxysection{Debug by URL}\label{md_sfcode_node_modules_karma_jasmine_README_autotoc_md15758}
Failing tests print a debug URL with {\ttfamily ?spec=}. Use it with {\ttfamily -\/-\/no\+\_\+single\+\_\+run} and paste it into your browser to focus on a single failing test.\hypertarget{md_sfcode_node_modules_karma_jasmine_README_autotoc_md15759}{}\doxysection{Sharding}\label{md_sfcode_node_modules_karma_jasmine_README_autotoc_md15759}
By setting {\ttfamily config.\+client.\+shard\+Index} and {\ttfamily config.\+client.\+total\+Shards}, you can run a subset of the full set of specs. Complete sharding support needs to be done in the process that calls karma, and would need to support test result integration across shards.

\DoxyHorRuler{0}


For more information on Karma see the \href{https://karma-runner.github.com/}{\texttt{ homepage}}. 