1
私はRubyからPythonに来ています。 rubyのrspecでは、スキップする必要のあるテスト/現在実行できないテストを示すのに、skip
とpending
を使用するのに慣れています。ruby rspecの "skip"と "pending"に相当するPython
Pythonの同等機能は何ですか?
私はRubyからPythonに来ています。 rubyのrspecでは、スキップする必要のあるテスト/現在実行できないテストを示すのに、skip
とpending
を使用するのに慣れています。ruby rspecの "skip"と "pending"に相当するPython
Pythonの同等機能は何ですか?
Pythonのpytest
ができます:
pytest.skip("unsupported configuration")
xfail
for tests which are expected to fail、例えば:
pytest.xfail("waiting for foo to be fixed")