.. _mark: å±æ§ããã¤ãã¹ãé¢æ°ã®ãã¼ã¯ ============================ .. Marking test functions with attributes ================================================================= .. currentmodule:: _pytest.mark .. By using the ``pytest.mark`` helper you can easily set metadata on your test functions. There are some builtin markers, for example: ``pytest.mark`` ãã«ãã¼ã使ã£ã¦ããã¹ãé¢æ°ã«ã¡ã¿ãã¼ã¿ãç°¡åã«è¨å®ã§ãã¾ããçµã¿è¾¼ã¿ã®ãã¼ã«ã¼ãç´¹ä»ãã¾ã: .. * :ref:`skipif <skipif>` - skip a test function if a certain condition is met * :ref:`xfail <xfail>` - produce an "expected failure" outcome if a certain condition is met * :ref:`parametrize <parametrizemark>` to perform multiple calls to the same test function. * :ref:`skipif <skipif>`: ç¹å®ã®æ¡ä»¶ãæºãããå ´åã«ãã¹ãé¢æ°ãã¹ããã * :ref:`xfail <xfail>`: ç¹å®ã®æ¡ä»¶ãæºãããå ´åã« "失æãæå¾ " * :ref:`parametrize <parametrizemark>`: åããã¹ãé¢æ°ã«å¯¾ãã¦è¤æ°åã®å¼ã³åºããå®è¡ .. It's easy to create custom markers or to apply markers to whole test classes or modules. See :ref:`mark examples` for examples which also serve as documentation. ã«ã¹ã¿ã ãã¼ã«ã¼ãä½æãããã¾ãã¯å ¨ä½ã®ãã¹ãã¯ã©ã¹ãã¢ã¸ã¥ã¼ã«ã«ãã¼ã«ã¼ãé©ç¨ããã®ã¯ç°¡åã§ããããã¥ã¡ã³ãã§ããã :ref:`mark examples` ã®ãµã³ãã«ãåç §ãã¦ãã ããã .. API reference for mark related objects ------------------------------------------------ ãã¼ã«ã¼é¢é£ãªãã¸ã§ã¯ãã® API ãªãã¡ã¬ã³ã¹ ------------------------------------------- .. autoclass:: MarkGenerator :members: .. autoclass:: MarkDecorator :members: .. autoclass:: MarkInfo :members: