実行時情報

凡例
対応コードあり
直接対応していないが代替の書き方あり
対応コードなし
-未確認
( .. )ローカライズまだ
Feature Example Python
pytest
PHP
PHPUnit
Swift
Testing
Csharp
xunit
Bash
bats
Powershell
pester
C++
GoogleTest
JavaScript
Jest
Kotlin
jUnit
ソースファイル関連 実行時のコマンド名(パス)を取得 - - - - -
ソースファイル名(パス)を取得 - - - - -
ソースファイルのディレクトリ名を取得 - - - - - -
( get_executed_interpreter_path ) - - - - - -
( get_module_name ) - - - - - - - -
( get_current_directory ) - - - - - -
( get_current_line_number ) - - - - - - - -
( get_caller_line_number ) - - - - - - - -
( get_current_function_name ) - - - - - - -
( get_caller_function_name ) - - - - - - -
( get_current_file_name ) - - - - - - - -
( get_caller_file_name ) - - - - - - - -
( execute_when_its_main ) - - - - - - - -
( get_executed_command_path_when_called_from_another_script ) - - - - - - - -
( get_source_file_path_when_called_from_another_script ) - - - - - - - -
( get_current_file_path ) - - - - - - - -
( get_caller_file_path ) - - - - - - - -
( introspection ) ( list_member_of_object ) - - - - - - - -
( reflection ) ( run_method_by_name_string ) - - - - - - - -
( system_info ) ( get_current_user_name ) - - - - - - -
( get_hostname_short ) - - - - - - -
( get_hostname_full ) - - - - - - -
( get_ip_address_of_current_host ) - - - - - - -
( resolve_ip_address_from_hostname ) - - - - - - -