Skip to content

Commit

Permalink
Added shuffling to running suites
Browse files Browse the repository at this point in the history
  • Loading branch information
axemclion committed Jan 2, 2014
1 parent b506b34 commit 5bc9089
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = function(grunt) {
var semver = require('semver');
var semver = require('semver'),
_ = require('lodash');
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean: ['dist'],
Expand Down Expand Up @@ -60,9 +61,9 @@ module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
var task = grunt.config.data.run_perf_tests,
path = require('path');
grunt.util._.each(grunt.file.expand({
_.each(_.shuffle(grunt.file.expand({
filter: 'isFile'
}, './dist/**/*.html'), function(file) {
}, './dist/**/*.html')), function(file) {
file = path.relative('./dist', file);
var version = path.dirname(file),
component = path.basename(file);
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"jade": "~0.34.1",
"grunt-contrib-watch": "~0.5.3",
"load-grunt-tasks": "~0.2.1",
"perfjankie": "~0.0.x"
"perfjankie": "~0.0.x",
"lodash": "~2.4.1"
}
}

0 comments on commit 5bc9089

Please sign in to comment.