mirror of
https://github.com/less/less.js.git
synced 2026-01-22 13:48:03 -05:00
exclude sync and integration tests if test name is specified
This commit is contained in:
@@ -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: ");
|
||||
|
||||
Reference in New Issue
Block a user