Skip to content

Commit

Permalink
rename nmclicktest -> clicktest
Browse files Browse the repository at this point in the history
  • Loading branch information
campersau committed May 2, 2020
1 parent 3ac4257 commit b49be59
Show file tree
Hide file tree
Showing 15 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public/devStyling.html
public/js/devStyling.js

clicktests/
nmclicktests/

teststabilitytester.js

Expand Down
8 changes: 4 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ module.exports = (grunt) => {
timeout: 35000,
bail: true
},
src: 'nmclicktests/spec.*.js'
src: 'clicktests/spec.*.js'
}
},

Expand Down Expand Up @@ -168,7 +168,7 @@ module.exports = (grunt) => {
},
src: [
'test/**/*.js',
'nmclicktests/**/*.js'
'clicktests/**/*.js'
]
}
},
Expand Down Expand Up @@ -335,7 +335,7 @@ module.exports = (grunt) => {
grunt.registerTask('clickParallel', 'Parallelized click tests.', function() {
const done = this.async();

fs.readdirAsync('./nmclicktests')
fs.readdirAsync('./clicktests')
.then((files) => files.filter((file) => file.startsWith('spec.')))
.then((tests) => {
const genericIndx = tests.indexOf('spec.generic.js');
Expand All @@ -351,7 +351,7 @@ module.exports = (grunt) => {

grunt.log.writeln(cliColor.set(`Clicktest started! \t${file}`, 'blue'));
return new Bluebird((resolve, reject) => {
const child = childProcess.execFile('./node_modules/mocha/bin/mocha', [path.join(__dirname, 'nmclicktests', file), '--timeout=35000', '-b'], { maxBuffer: 10*1024*1024 });
const child = childProcess.execFile('./node_modules/mocha/bin/mocha', [path.join(__dirname, 'clicktests', file), '--timeout=35000', '-b'], { maxBuffer: 10*1024*1024 });
child.stdout.on('data', outStream);
child.stderr.on('data', outStream);
child.on('exit', (code) => {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b49be59

Please sign in to comment.