Skip to content

Commit

Permalink
Added package for showing code
Browse files Browse the repository at this point in the history
  • Loading branch information
erima694 committed Apr 29, 2015
1 parent 3124dbc commit e06a103
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions documents/kandidatarbete/enskilda/erik.tex
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,27 @@ \subsection{Metod}
Task runnern Grunt konfigurerades med filen Gruntfile.js i projektets repository.
En task för Jasmine skapades med
inställningen: \emph{grunt.loadNpmTasks('grunt-contrib-jasmine');}.

\begin{lstlisting}
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jasmine: {
test: {
src: './public/js/*.js',
options: {
vendor: [
'public/js/lib/jquery/jquery-2.1.1.js',
'node_modules/jasmine-jquery/lib/jasmine-jquery.js'
],
keepRunner: true,
specs: 'test/*-spec.js',
template: 'test/template/spec-template.tmpl'
}
}
}
});
\end{lstlisting}

Eftersom Travis CI använder npm för att starta
testerna så definierades testskriptet för npm med raden
\emph{''test'': ''grunt jasmine --verbose''} i filen package.json
Expand Down
2 changes: 1 addition & 1 deletion documents/kandidatarbete/kandidatarbete.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
\graphicspath{ {images/} }

\usepackage{url}

\usepackage{listings}
%\usepackage{showframe}
%\usepackage[a4paper]{geometry}
\usepackage{fancyhdr}
Expand Down

0 comments on commit e06a103

Please sign in to comment.