Polyman Documentation - v2.2.2
    Preparing search index...

    Interface LocalTestset

    Local testset configuration. Polygon-compatible testset with script-based test generation.

    LocalTestset

    // Complete testset with generation script
    {
    name: 'tests',
    generatorScript: {
    commands: [
    { type: 'manual', manualFile: './tests/sample.txt', group: 'samples' },
    { type: 'generator', generator: 'gen-random', args: ['10'] }
    ]
    },
    groupsEnabled: true,
    groups: [
    { name: 'samples', pointsPolicy: 'EACH_TEST', feedbackPolicy: 'COMPLETE' }
    ]
    }
    // Using Polygon-format script
    {
    name: 'tests',
    generatorScript: {
    script: 'gen 1 > $\ngen 2 > $\ngen-large 100 1000 > $'
    }
    }
    interface LocalTestset {
        name: string;
        generatorScript?: GeneratorScript;
        groupsEnabled?: boolean;
        pointsEnabled?: boolean;
        groups?: LocalTestGroup[];
    }
    Index

    Properties

    name: string

    Testset name (usually 'tests')

    generatorScript?: GeneratorScript

    Test generation script configuration

    groupsEnabled?: boolean

    Whether test groups are enabled

    pointsEnabled?: boolean

    Whether point scoring is enabled

    groups?: LocalTestGroup[]

    Test group configurations