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

    Interface GeneratorScript

    Test generation script configuration. Defines how tests are generated using generators and manual test files.

    GeneratorScript

    // Using structured commands
    {
    commands: [
    { type: 'manual', manualFile: './tests/sample1.txt', group: 'samples' },
    { type: 'manual', manualFile: './tests/sample2.txt', group: 'samples' },
    { type: 'generator', generator: 'gen-random', args: ['1'] },
    { type: 'generator', generator: 'gen-random', args: ['2'] },
    { type: 'generator', generator: 'gen-large', args: ['1000', '10000'] }
    ]
    }
    // Using Polygon-format script
    {
    script: 'gen 1 > $\ngen 2 > $\ngen 10 20 > $'
    }
    // Using external script file
    {
    scriptFile: './tests/generation-script.txt'
    }
    interface GeneratorScript {
        commands?: GeneratorScriptCommand[];
        script?: string;
        scriptFile?: string;
    }
    Index

    Properties

    Array of generation commands

    script?: string

    Inline script definition (Polygon format)

    scriptFile?: string

    Path to external script file