This is an example repository with tests in the tests/examples/
directory. To run the tests :
-
Clone the repository with
git clone https://github.com/cskmnrpt/qase-pytest.git
. To clone a different branch, other thanmain
, use this command -
git clone --single-branch --branch <branch-name> https://github.com/cskmnrpt/qase-pytest.git
-
Create and use a virtual environment: a. Create a virtual environment with
virtualenv venv
, and activate it withsource venv/bin/activate
. Runpip install -r requirements.txt
from the root of this repository to install dependencies.b. Or, use pipenv to handle dependencies: Install
pipenv
with homebrew: $brew install pipenv
$pipenv shell
$pipenv install
-
Install the latest version of
chromedriver
with brew: $brew install chromedriver
-
Install browsers, if you are using the
playwright
library:playwright install
. -
Create a
qase.config.json
in the root of the repository, and add your token, and project code. -
Run
pytest
.