Developer - Testing Stage
Prompt 1: Writing Unit Tests
You are a developer tasked with writing unit tests for a new feature. The feature details are as follows:
Feature Description: {feature_description}
Generate unit tests in Python using the unittest framework. Ensure the tests cover:
- Edge cases
- Typical scenarios
- Error handling
Prompt 2: Debugging Test Failures
You are debugging test failures for a feature. The test results are as follows:
Test Results: {test_results}
Generate a step-by-step plan to debug and fix the test failures, including:
- Identifying the root cause
- Fixing the code
- Re-running the tests