Skip to content

rakin92/python-bdd-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Behavior Driven Testing

Build Status Python 3.7

"In software engineering, behavior-driven development is an Agile software development process that encourages collaboration among developers, QA and non-technical or business participants in a software project." - Wiki

Stack

Installation

Always recommand using virtualenv when dealing with python. Setup your virtual environment

virtualenv venv

Activate virtual env

. venv/bin/activate

Use the package manager pip to install dependencies from requirements.txt

pip install -r requirements.txt

Run the tests

Run tests locally

behave

If you wish to run headless

RUN_HEADLESS=TRUE behave

Run test remote in SauceLab

IS_REMOTE=TRUE SAUCE_USERNAME=<YOUR_USERNAME> SAUCE_ACCESS_KEY=<YOUR_KEY> behave

Formatting

Python follow the PEP 8 standard, To maintain we are using autopep8 package.

autopep8 --in-place --aggressive --aggressive <file_path>

Docker

Build image

docker build -t IMAGE_NAME .

Run image

docker run IMAGE_NAME

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published