This repository contains tests for S3 buckets and their coverage for both Boto3 and Boto2 SDKs.
- Clone the repository:
git clone [email protected]:iraj465/Boto-S3-tests.git
cd Boto-S3-tests
- Install virtual environment and required dependencies:
# Create a virtual environment
$ python3 -m venv env
$ source ./env/bin/activate
# Install the dependencies:
$ pip install -r requirements.txt
-
Copy
.env.example
to.env
and configure the environment variables accordingly. -
Runs tests for Boto3 SDK by running:
coverage run --source boto3/ -m pytest boto3/tests_s3.py
- Runs tests for Boto2 SDK by running:
coverage run --source boto2/ -m pytest boto2/tests_s3.py
- Run the following command to generate coverage report:
coverage report
- Run the following command to generate coverage report in html(for website viewing):
coverage html