( runtime_path )
凡例
| → | 対応コードあり |
| → | 直接対応していないが代替の書き方あり |
| → | 対応コードなし |
| - | 未確認 |
| ( .. ) | ローカライズまだ |
| Example | Python pytest |
C++ GoogleTest |
Swift Testing |
Kotlin jUnit |
Bash bats |
|---|---|---|---|---|---|
| ( get_executed_command_path ) | sys.argv[0] => ./a.py | - | - | - | $0 => ./a.sh |
| ( get_source_file_path ) | __file__ | - | - | - | ${BASH_SOURCE[0]} |
| ( get_executed_interpreter_path ) | sys.executable | - | - | - | - |
| ( get_module_name ) | __name__ | - | - | - | - |
| ( get_current_directory ) | os.getcwd() | - | - | - | - |