- Must have node.js (at LTS) installed with npm (Node Package Manager)
- on Jenkins home, click on New item
- select
freestyle project
and define item namecmd - Jenkins CI and Karma jUnit Report
- click on OK button
-
select git
-
add repository url:
https://github.com/erkobridee/jenkins-ci-and-karma-junit-reporter
-
on
Add Build step
combobox selectExecute shell
-
define command
npm test
-
on
Add post-build action
combobox selectPublish JUnit test result report
-
on
Test report XMLs
field definetests_out/junit/**/*.xml
-
on
Add post-build action
combobox selectPublish Cobertura Coverage Report
-
on
Cobertura xml report pattern
field definetests_out/coverage/**/*.xml
- click on save button at page bottom
- on Project home, at left sidebar menu click on
Build Now