exclude sync and integration tests if test name is specified

This commit is contained in:
Luke Page
2015-01-04 08:45:57 +00:00
parent 10ea767708
commit 15fc1cb332

View File

@@ -125,7 +125,10 @@ module.exports = function() {
}
function testSyncronous(options, filenameNoExtension) {
totalTests++;
if (oneTestOnly && ("Test Sync " + filenameNoExtension) !== oneTestOnly) {
return;
}
totalTests++;
queue(function() {
var isSync = true;
toCSS(options, path.join('test/less/', filenameNoExtension + ".less"), function (err, result) {
@@ -295,6 +298,9 @@ module.exports = function() {
}
function testNoOptions() {
if (oneTestOnly && "Integration" !== oneTestOnly) {
return;
}
totalTests++;
try {
process.stdout.write("- Integration - creating parser without options: ");