Standard output
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 |
|---|---|---|---|---|---|---|---|---|---|
| ( print_with_newline ) | print(message) | - | - | - | - | Write-Output $message | cout << message << endl | - | - |
| ( print_with_format ) | print('%d' % i) | - | - | - | - | - | printf("%d", i) | - | - |
| ( print_without_newline ) | print(message, end='') | - | - | - | - | - | cout << message | - | - |
| ( print_to_stderr ) | print(message, file=sys.stderr) | - | - | - | - | - | - | - | - |
| ( pretty_print ) | pprint.pprint(o) | - | - | - | - | - | - | - | - |
| ( pretty_print_with_json ) | print(json.dumps(o, indent=2)) | - | - | - | - | - | - | - | - |
| ( output_without_newline ) | - | - | - | - | - | Write-Host $message -NoNewline | - | - | - |