dist/lib/cli.js
function mergeLists(list, _filters) {
        if (list.specFiles) {
            list.specFiles.forEach(value => _filters.specFiles[value] = true);
        }
        if (list.testcaseFiles) {
            list.testcaseFiles.forEach(value => _filters.testcaseFiles[value] = true);
        }
        if (list.features) {
            list.features.forEach(value => _filters.features[value] = true);
        }
        if (list.specs) {
            list.specs.forEach(value => _filters.specs[value] = true);
        }
        if (list.testcases) {
            list.testcases.forEach(value => _filters.testcases[value] = true);
        }
        if (list.listFiles) {
            for (const listFile of list.listFiles) {
                // complete cli listFiles paths
                const listFilePath = path.join(listsDir, `${listFile}.list.ts`);
                if (!fs.existsSync(listFilePath)) {
                    throw new Error(`List file could not be found: ${listFilePath}`);
                }
                else {
                    const sublist = require(listFilePath).default;
                    // recursively traverse sub list files
                    mergeLists(sublist, _filters);
                }
            }
        }
    }
function mergeLists(list, _filters) {
        if (list.specFiles) {
            list.specFiles.forEach(value => _filters.specFiles[value] = true);
        }
        if (list.testcaseFiles) {
            list.testcaseFiles.forEach(value => _filters.testcaseFiles[value] = true);
        }
        if (list.features) {
            list.features.forEach(value => _filters.features[value] = true);
        }
        if (list.specs) {
            list.specs.forEach(value => _filters.specs[value] = true);
        }
        if (list.testcases) {
            list.testcases.forEach(value => _filters.testcases[value] = true);
        }
        if (list.listFiles) {
            for (const listFile of list.listFiles) {
                // complete cli listFiles paths
                const listFilePath = path.join(listsDir, `${listFile}.list.ts`);
                if (!fs.existsSync(listFilePath)) {
                    throw new Error(`List file could not be found: ${listFilePath}`);
                }
                else {
                    const sublist = require(listFilePath).default;
                    // recursively traverse sub list files
                    mergeLists(sublist, _filters);
                }
            }
        }
    }
function mergeLists ( list , _filters ) { if ( list . specFiles ) { list . specFiles . forEach ( value => _filters . specFiles [ value ] = true ) ; } if ( list . testcaseFiles ) { list . testcaseFiles . forEach ( value => _filters . testcaseFiles [ value ] = true ) ; } if ( list . features ) { list . features . forEach ( value => _filters . features [ value ] = true ) ; } if ( list . specs ) { list . specs . forEach ( value => _filters . specs [ value ] = true ) ; } if ( list . testcases ) { list . testcases . forEach ( value => _filters . testcases [ value ] = true ) ; } if ( list . listFiles ) { for ( const listFile of list . listFiles ) { // complete cli listFiles paths const listFilePath = path . join ( listsDir , ` ${ listFile } ` ) ; if ( ! fs . existsSync ( listFilePath ) ) { throw new Error ( ` ${ listFilePath } ` ) ; } else { const sublist = require ( listFilePath ) . default ; // recursively traverse sub list files mergeLists ( sublist , _filters ) ; } } } }
Loads all specFiles, testcaseFiles, features, specs and testcases defined in lists and sublists of argv.listFiles
@param argv
Loads all specFiles testcaseFiles features specs and testcases defined in lists and sublists of argv . listFiles