( xunit )

凡例
対応コードあり
直接対応していないが代替の書き方あり
対応コードなし
-未確認
( .. )ローカライズまだ
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 - - - -
( capture_return_code ) e.value.code - - - -
( mock_standard_input_from_pipe ) monkeypatch: sys.stdin - - - -
( mock_input_from_keyboard ) monkeypatch: builtins.input - - - -
( mark_as_todo ) - DISABLED_ - - -