Pytest - 環境設定



在本章中,我們將學習如何安裝 pytest。

要開始安裝,執行以下命令 −

pip install pytest == 2.9.1

我們可以安裝任何版本的 pytest。此處,2.9.1 是我們正在安裝的版本。

要安裝 pytest 的最新版本,執行以下命令 −

pip install pytest

使用以下命令顯示 pytest 的幫助部分來確認安裝。

pytest -h
廣告