Runs a generator program to create a test file. Executes the compiled generator with given arguments and redirects output to a file.
Path to compiled generator executable
Arguments to pass to the generator
Path where test output will be written
If generator execution fails
If generator exceeds time or memory limits (exits process)
await runGenerator( './gen-random', ['1', '100'], 'tests/test1.txt'); Copy
await runGenerator( './gen-random', ['1', '100'], 'tests/test1.txt');
Runs a generator program to create a test file. Executes the compiled generator with given arguments and redirects output to a file.