Skip to content

paulocoliveira/unit-testing-with-python-unittest-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python Unit Testing Tutorial - Complete guide to Unit Testing with Python Unittest Framework

This is a code created to run unit testing using unittest, that was the goal of my LambdaTest Blog Article: Python Unit Testing Tutorial - Complete guide to Unit Testing with Python Unittest Framework.

Sign Up LambdaTest for Free

Installation

As a prerequisite for this code, you need:

  1. Download and Install Python
  2. Install unittest, and Selenium WebDriver libraries
pip install -r requirements.txt
  1. Download and Install Visual Studio Code

Execution

In order to run this code, please run the command below in the tests folder:

python -m unittest discover

In order to run the code of one specific file, please run the command below, just changing the name of the pýthon file you want to run:

python -m unittest test_sample.py

About

LambdaTest Blog Article: Python Unit Testing Tutorial - Complete guide to Unit Testing with Python Unittest Framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages