Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Example to execute Karma Runner through Jenkinks CI and load xml report file

Notifications You must be signed in to change notification settings

erkobridee/jenkins-ci-and-karma-junit-reporter

Repository files navigation

Jenkins CI and Karma jUnit Report

Example to execute Karma Runner through Jenkiks CI and load xml report file.

Karma Runner and require.js + angular.js modular application with Gulp.js. Code and test specs together in same directory module. Vendors Libs, Application Source and Tests specs loaded by require.js on Karma Runner test page.

--

Prerequisites

  • Must have Git installed

  • Must have node.js (at least v0.10+) installed with npm (Node Package Manager)

  • Must have bower node package installed globally

  • Must have Gulp.js node package installed globally. sudo npm install -g gulp

  • Must have PhantomJS installed

/tools/script/setup.js - will check bower, gulp and phantomjs, if not found, this script will install the needed global package and after setup environment, will install bower and npm dependencies.

Commands

Setup environment and start development : [ npm run setup, gulp dev ]

$ npm start

Setup environment and run CI flow : [ npm run setup, gulp ci ]

$ npm test

Gulp

Based on [GitHub] soudev / gulp-steps - 04 - enhanced

  • development mode

Project only

$ gulp project

Karma only

$ gulp specs

Project and Karma

$ gulp dev

--

check code coverage : npm run coverage that will call the following command

$ gulp coverage
  • continuous integration (CI) mode

npm test will call the following command

$ gulp ci

Links

Licenses

About

Example to execute Karma Runner through Jenkinks CI and load xml report file

Resources

Stars

Watchers

Forks

Packages

No packages published