<aside>
</aside>
pytest-cov
ํ๋ฌ๊ทธ์ธ ์ค์น ๋ฐ ์ฌ์ฉ, ์ปค๋ฒ๋ฆฌ์ง ์ธก์ ํ๋ก์ ํธ ๊ตฌ์กฐ: (๋ณ๋ ์์)
graph TD
A(my-pytest-project) --> B(.venv);
A --> C(mycalc);
A --> D(tests);
A --> E(pytest.ini);
C --> C1(__init__.py);
C --> C2(calculator.py multiply ๋ฉ์๋ ์ถ๊ฐ);
C --> C3(exchange.py);
D --> D1(__init__.py);
D --> D2(test_calculator.py multiply ํ
์คํธ ์์);
D --> D3(conftest.py);
D --> D4(test_scopes.py);
D --> D5(test_markers.py);
D --> D6(test_exchange.py);
style B fill:#eee,stroke:#333,stroke-dasharray: 5 5;
style C fill:#ccf,stroke:#333;
style D fill:#cfc,stroke:#333;
style E fill:#fef,stroke:#333;
style C2 fill:#cce,stroke:#333;
style C3 fill:#fda,stroke:#333;
style D2 fill:#cef,stroke:#333;
style D3 fill:#fec,stroke:#333;
style D4 fill:#dff,stroke:#333;
style D5 fill:#ffd,stroke:#333;
style D6 fill:#adf,stroke:#333;
mycalc/calculator.py
(ํ
์คํธ ์ ๋ ์ฝ๋ ์ถ๊ฐ):