Skip to content

PythonCoderAS/subprocess-test-utils

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

subprocess-test-utils

Utility functions for testing subprocesses.

API

runScript(scriptPath: string, args: string[] = []): Promise<boolean>

Returns a boolean indicating whether the given script ran successfully or not.

Parameters

  • scriptPath: The path to the script to run.
  • args: An array of arguments to pass to the script.

Returns: A boolean indicating if the script exited successfully (exit code 0) or failed (exit code 1).

runScriptOutput(scriptPath: string, args: string[] = []): Promise<boolean>

Returns the stdout and stderr of the given script.

Parameters

  • scriptPath: The path to the script to run.
  • args: An array of arguments to pass to the script.

Returns: An object with the stdout and stderr keys.

About

Utility functions for testing subprocesses.

Resources

License

Stars

Watchers

Forks

Packages

No packages published