JacksonMar / API_tests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API Tests Project

Description

This project contains automated tests for APIs using pytest and playwright.

Requirements

  • Python 3.12
  • Docker

Installation

  1. Clone the repository:

    git clone https://github.com/JacksonMar/API_tests.git
    cd API_tests
  2. Create venv

    python3 -m venv .venv
    source .venv/bin/activate
  3. Install the dependencies:

    pip install -r requirements.txt

Usage

Running Tests Locally

To run the tests locally, execute the following command:

pytest . -s -v --html=report.html

Running Tests in Docker

docker build -t my-test-image .
docker run -v $(pwd):/API_tests my-test-image

About


Languages

Language:Python 96.4%Language:Dockerfile 3.6%