( run_external_command )
凡例
| → | 対応コードあり |
| → | 直接対応していないが代替の書き方あり |
| → | 対応コードなし |
| - | 未確認 |
| ( .. ) | ローカライズまだ |
| 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 | - | - | - |