xUnit

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
Assert equals assert v == 3 assertEquals($e, $a) #expect(v == 3) - - $a | Should -Be $e EXPECT_EQ(v, 3) - -
Assert true assert x assertTrue($r) #expect(x) - - - EXPECT_TRUE(x) - -
Assert with message on error assert x, '..' - #expect(x, "message") - - - EXPECT_EQ(..) << "message" - -
Assert exception pytest.raises - #expect(..) { throw .. } - - { ... } | Should -Throw EXPECT_THROW - -
Parametrized test @pytest.mark.parametrize #[DataProvider(..)] - - It .. -ForEach @(...) - -
Capture stdout/stderr capsys - - - - - - -
Capture return code e.value.code - - - run => $status - - - -
Mock input from pipe monkeypatch: sys.stdin - - - - - - - -
Mock input from keyboard monkeypatch: builtins.input - - - - - - - -
Skip test pytest.skip $this->markTestSkipped('reason'); - skip Set-ItResult -Skipped -Because 'Skipped reason' GTEST_SKIP - -
Mark as TODO - - - - - - DISABLED_ - -
( assert_equals_strict ) - assertSame($e, $a) - - - - - - -
( assert_contains ) - assertContains($item, $items) - - - - - - -