xUnit
Legend
| → | Has corresponding code |
| → | No direct match, but an alternative exists |
| → | No corresponding code |
| - | TODO |
| ( .. ) | Not localized |
| Feature | Example | Python pytest |
PHP PHPUnit |
Swift Testing |
Csharp xunit |
Bash bats |
Powershell pester |
C++ GoogleTest |
JavaScript Jest |
Kotlin jUnit |
|---|---|---|---|---|---|---|---|---|---|---|
| xUnit | Assert equals | → | → | → | - | - | → | → | - | - |
| Assert true | → | → | → | - | - | - | → | - | - | |
| Assert with message on error | → | - | → | - | - | - | → | - | - | |
| Assert exception | → | - | → | - | - | → | → | - | - | |
| Parametrized test | → | → | → | - | - | → | → | - | - | |
| Capture stdout/stderr | → | - | - | - | - | - | → | - | - | |
| Capture return code | → | - | - | - | → | - | - | - | - | |
| Mock input from pipe | → | - | - | - | - | - | - | - | - | |
| Mock input from keyboard | → | - | - | - | - | - | - | - | - | |
| Skip test | → | → | → | - | → | → | → | - | - | |
| Mark as TODO | - | - | - | - | - | - | → | - | - | |
| ( assert_equals_strict ) | - | → | - | - | - | - | - | - | - | |
| ( assert_contains ) | - | → | - | - | - | - | - | - | - |