Skip to content

Commit 528d541

Browse files
authored
Update README.md
1 parent d03e8a2 commit 528d541

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,19 @@ This project integrates Dynamic Application Security Testing (DAST) into the Git
5757
- Ensure that the `DAST_TARGET_URL` secret points to a valid and accessible URL.
5858
- Verify that your application is fully started and accessible at the specified URL.
5959
- Update the `sleep` duration in the pipeline if your application requires more time to start.
60+
61+
# Unit Tests Workflow for Django
62+
63+
## Environment Configuration
64+
The pipeline now creates a `.env` file automatically during testing using proper `here-document` syntax. This ensures that the pipeline works without requiring a separate `.env.example` file.
65+
66+
### Example `.env` Content
67+
The following variables are set in the `.env` file created by the pipeline:
68+
- `DEBUG=True`
69+
- `SECRET_KEY=your_secret_key_for_testing`
70+
- `DATABASE_URL=postgres://postgres:postgres@localhost:5432/testdb`
71+
72+
## Debugging Tips
73+
- Ensure that your project contains test files (e.g., `tests.py`) with valid test cases.
74+
- If you encounter issues with database migrations, verify your database settings in `settings.py`.
75+
- Review the logs in the GitHub Actions tab for detailed error messages.

0 commit comments

Comments
 (0)