Skip to content

This repository contains a Python test suite for a ToDo app API. The tests are written using pytest and utilize the requests library for API interactions and faker for generating fake data.

Notifications You must be signed in to change notification settings

software-ace/todo-API-test-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ToDo App API Test Suite

Run tests and publish the report Python Version Pytest Version Requests Version Faker Version

This repository contains a Python test suite for a ToDo app API here is the API documentation. The tests are written using pytest and utilize the requests library for API interactions and faker for generating fake data.

Setup

Before running the tests, ensure you have Python installed on your machine. You can set up a virtual environment and install the required dependencies using the following commands:

python -m venv venv
source venv/bin/activate  # On Windows, use "venv\Scripts\activate"
pip install --upgrade pip
pip install pytest==8.0.0 pytest-html==4.1.1 faker==22.6.0 requests==2.31.0

Running Tests

To run the tests, execute the following command:

pytest --html=testing_results/report.html

This will run the tests and generate an HTML report in the testing_results directory.

Test Dependencies

  • pytest: A testing framework for Python.
  • pytest-html: A plugin for pytest that produces an HTML report for test results.
  • requests: A Python library for making HTTP requests.
  • faker: A Python library for generating fake data.

Test Report

After running the tests, you can view the detailed test report by opening the generated HTML file in a web browser. The report is located at testing_results/report.html.

View Latest Deployment

View Latest Deployment

About

This repository contains a Python test suite for a ToDo app API. The tests are written using pytest and utilize the requests library for API interactions and faker for generating fake data.

Topics

Resources

Stars

Watchers

Forks

Languages