( run_external_command )
Legend
| → | Has corresponding code |
| → | No direct match, but an alternative exists |
| → | No corresponding code |
| - | TODO |
| ( .. ) | Not localized |
| Example | Python pytest |
PHP PHPUnit |
Swift Testing |
Csharp xunit |
Bash bats |
Powershell pester |
C++ GoogleTest |
JavaScript Jest |
Kotlin jUnit |
|---|---|---|---|---|---|---|---|---|---|
| ( get_command_standard_output ) | subprocess.run() | shell_exec() | - | - | - | $output = command | - | - | - |
| ( get_command_standard_error ) | subprocess.run(.., check=False), stderr | proc_open() .. | - | - | - | cannot capture directly, so use cmd /c .. | - | - | - |
| ( get_command_return_code ) | subprocess.run(.., check=False), returncode | exec($output, $status) | - | - | $? | $LASTEXITCODE | - | - | - |