( xunit )
Legend
| → | Has corresponding code |
| → | No direct match, but an alternative exists |
| → | No corresponding code |
| - | TODO |
| ( .. ) | Not localized |
| Example | Python pytest |
C++ GoogleTest |
Swift Testing |
Kotlin jUnit |
Bash bats |
|---|---|---|---|---|---|
| ( assert_equals ) | assert v == 3 | EXPECT_EQ(v, 3) | #expect(v == 3) | - | - |
| ( assert_true ) | assert x | EXPECT_TRUE(x) | #expect(x) | - | - |
| ( assert_with_message_on_error ) | assert x, '..' | EXPECT_EQ(..) << "message" | #expect(x, "message") | - | - |
| ( skip_test ) | pytest.skip | GTEST_SKIP | @Test(.disabled(..)) | - | - |
| ( handle_exception ) | pytest.raises | EXPECT_THROW | #expect(..) { throw .. } | - | - |
| ( parametrized_test ) | @pytest.mark.parametrize | → | → | - | - |
| ( capture_stdout_and_stderr ) | capsys | - | - | - | - |
| ( mark_as_todo ) | - | DISABLED_ | - | - | - |