This project assumes the following:
- Python 3.5 or above is installed in the system
- git is inatalled in the system
- virtualenv package is installed in the system. If not installed, then install using
pip3 install virtualenv
orpip install virtualenv
- Clone the project:
git clone https://github.com/MhmdRyhn/unittest_using_pytest.git
- Enter project root directory:
cd unittest_using_pytest
Run following command: If Python 2.x is the default python version, then
virtualenv -p python3 venv
If Python 3.x is the default python version, then
virtualenv -p python3 venv
- Command:
source venv/bin/activate
- Install requirements:
pip3 install -r requirements.txt
orpip install -r requirements.txt
- Command:
export PATH="$(pwd):$PATH"
- Command:
pytest
It will output in console that -> ====== X passed in X.XXs =======