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

    Function executeGeneratorScript

    • Executes generation script commands to create test files. Processes each command in the script, handling both manual and generated tests. Requires generators to be pre-compiled (use compileAllGenerators first).

      Parameters

      • commands: GeneratorScriptCommand[]

        Array of generation commands

      • generators: LocalGenerator[]

        Available generators

      • OptionaloutputDir: string

        Output directory for tests (defaults to ./tests)

      Returns Promise<void>

      If any command fails to execute

      await executeGeneratorScript(
      [
      { type: 'manual', manualFile: './tests/manual/sample.txt' },
      ],
      generators,
      './tests/my-testset'
      );