Skip to content

ShahnawazKakarh/pytest_framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pytest_framework

All settings are setup in this project for a beginer to learn pytest.

Pytest Project Setup

Before running the app assuming that python 3.7.9 , mysql and virutalenv is installed on machine

  1. Create virtual environment with python3
$ virtualenv -p python3 envname
  1. Activate the virtual environment
$ source envname/bin/activate
  1. Install requisite packages:
$ sh scripts/install_requirements.sh
  1. Temporary running solution:
  • Run all tests under a project
$ pytest tests/{project_name}/ -vv --settings=settings.{deployment_details}

Where: {project_name} = project_one, project_two, project_three & {deployment_details} = local, dev, qa, uat, rc, prd

  • Run single tests under a project
$ pytest tests/{project_name}/test_file_name.py -vv -k 'test_name' --settings=settings.{deployment_details}

About

All settings are setup in this project for a beginner to learn pytest.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published