Metadata-Version: 2.1
Name: django_rest_test_case_generator
Version: 0.1.1
Summary: Django command to generate test case for rest apis.
Home-page: https://github.com/Ronakjain515/django-rest-test-case-generator
Author: Ronak Jain
Author-email: jronak515@gmail.com
License: MIT
Project-URL: Bug Tracker, https://github.com/Ronakjain515/django-rest-test-case-generator/issues
Keywords: django,test case generator,rest apis,testing
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: faker
Requires-Dist: astor

# TestCaseGenerator for Django REST APIs
`django_rest_test_case_generator` is a Python library that helps developers automatically generate test cases for their 
Django REST Framework APIs. It crawls through the project, detects class-based views (CBVs), and creates 
corresponding test cases based on the HTTP methods (GET, POST, PUT, DELETE, etc.) defined in those views. 
This saves developers time and ensures that their API endpoints are well-covered by automated tests.

## Getting Started
These instructions will help you to set up the library on your working project and start generating test cases
for development and testing purposes.

### Prerequisites
Before you can use `django_rest_test_case_generator`, you'll need to have the following installed:

```
pip install django djangorestframework
django-admin startproject myproject
cd myproject
```

### Installation

Now, you can install this package.

```
pip install django-rest-test-case-generator
```

In your Django project, add the `test_case_generator_command` app to your `INSTALLED_APPS` in settings.py:

```
INSTALLED_APPS = [
    # Other apps
    'test_case_generator_command',
]
```

Now you're ready to generate test cases for your APIs. Use the following management command to crawl through your project and create the test cases:

```
python manage.py generate_test_case
```
This will scan for class-based views (CBVs) and generate corresponding test cases for each API method (GET, POST, PUT, DELETE).
