<aside>
</aside>
@pytest.mark.skip
(ํ
์คํธ ๊ฑด๋๋ฐ๊ธฐ) ๋ฐ @pytest.mark.skipif
(์กฐ๊ฑด๋ถ ๊ฑด๋๋ฐ๊ธฐ) ๋ง์ปค ์ฌ์ฉ๋ฒ ์์ง@pytest.mark.xfail
(์์๋ ์คํจ) ๋ง์ปค ์ฌ์ฉ๋ฒ ๋ฐ ์๋ฏธ ์ดํด@pytest.mark.custom_name
) ์์ฑ ๋ฐ ํ
์คํธ ๋ถ๋ฅ/์๋ฏธ ๋ถ์ฌpytest.ini
ํ์ผ์ ์ฌ์ฉ์ ์ ์ ๋ง์ปค ๋ฑ๋ก ๋ฐฉ๋ฒ ๋ฐ ์ด์ ์ดํดm
์ปค๋งจ๋๋ผ์ธ ์ต์
์ผ๋ก ํน์ ๋ง์ปค ํ
์คํธ ์ ํ์ ์คํ/์ ์ธpytest.ini
์ถ๊ฐ!)pytest.ini
(์ ํ์ผ - ํ๋ก์ ํธ ๋ฃจํธ์ ์์ฑ):tests/test_markers.py
(์ ํ
์คํธ ํ์ผ):@pytest.mark.๋ง์ปค์ด๋ฆ
ํํ๋ก ์ถ๊ฐํ๋ ๋ฉํ๋ฐ์ดํฐ. ํ
์คํธ ๋ถ๋ฅ ๋ฐ ์คํ ์ ์ด.graph TD
T1[Test 1] -- @pytest.mark.smoke --> G1(Smoke Tests);
T2[Test 2] -- @pytest.mark.regression --> G2(Regression Tests);
T3[Test 3] -- @pytest.mark.slow --> G3(Slow Tests);
T4[Test 4] -- @pytest.mark.smoke --> G1;
T5[Test 5] -- @pytest.mark.regression --> G2;
T5 -- @pytest.mark.slow --> G3;
style G1 fill:#ccf,stroke:#333
style G2 fill:#cfc,stroke:#333
style G3 fill:#fcc,stroke:#333