File: markers.rst

package info (click to toggle)
pytest-mpi 0.6-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 404 kB
  • sloc: python: 2,070; makefile: 28; sh: 22
file content (30 lines) | stat: -rw-r--r-- 665 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Markers
=======

.. py:function:: pytest.mark.mpi(min_size=None)

    Mark that this test must be run under MPI.

    :keyword int min_size:
        Specify that this test requires at least `min_size` processes to run. If
        there are insufficient processes, skip this test.

        For example:

        .. code-block:: python

            import pytest

            @pytest.mark.mpi(minsize=4)
            def test_mpi_feature():
                ...


.. py:function:: pytest.mark.mpi_skip

    Mark that this test should be skipped when run under MPI.


.. py:function:: pytest.mark.mpi_xfail

    Mark that this test should be xfailed when run under MPI.