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.
As a prerequisite for this code, you need:
- Download and Install Python
- Install unittest, and Selenium WebDriver libraries
pip install -r requirements.txt
- Download and Install Visual Studio Code
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