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

    Function runGenerator

    • Runs a generator program to create a test file. Executes the compiled generator with given arguments and redirects output to a file.

      Parameters

      • execCommand: string

        Path to compiled generator executable

      • args: string[]

        Arguments to pass to the generator

      • outputFilePath: string

        Path where test output will be written

      Returns Promise<void>

      If generator execution fails

      If generator exceeds time or memory limits (exits process)

      await runGenerator(
      './gen-random',
      ['1', '100'],
      'tests/test1.txt'
      );