Skip to content

Malkiz/grunt-performance-comparer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grunt-performance-comparer

compare performance results from junit-xml-parser output json

Installation

npm install git://github.com/Malkiz/grunt-performance-comparer --save-dev

grunt.loadNpmTasks('performance-comparer');

Grunt Config Options

'performance-comparer': {
	options: {
		prev: 'tests-reports/prev-',
		out: 'tests-reports/report-',
		verbose: true,
		warnings: false,
		threshold: 20,
		override: true
	},
	unit: {
		src: 'tests-reports/unitests-results.xml',
	},
	multi: {
		src: 'tests-reports/multi/**/*unitests-results.xml',
		options: {
			aggregate: 'unitests-results.xml'
		}
	}
}

Use with watch for development

Here is an example how to use this task with watch and karma (with junit reporter).
Run this with grunt concurrent:unit

concurrent: {
  	options: {
  		logConcurrentOutput: true
  	},
    unit: ['karma:unit', 'watch:unit']
},

watch: {
  options: {
  	spawn: false,
  },
  unit: {
  	files: ['tests-reports/unitests-results.xml'],
  	tasks: ['performance-comparer:unit']
  }
},

'performance-comparer': {
  options: {
  	prev: 'tests-reports/prev-',
  	out: 'tests-reports/report-',
  	warnings: false,
  	verbose: true,
  	threshold: 20,
  	override: true
  },
  unit: {
  	src: 'tests-reports/unitests-results.xml',
  }
},

karma : {
  unit: {
    configFile : 'test-config/karma-unit.conf.js',
    reporters: ['dots', 'junit'],
		junitReporter: {
      outputFile: '../tests-reports/unitests-results.xml'
    }
  }
}

About

compare performance results from junit-xml-parser output json

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published