mirror of
https://github.com/awslabs/amazon-bedrock-agentcore-samples.git
synced 2025-09-08 20:50:46 +00:00
- Updated pyproject.toml to use latest versions of boto3, botocore, awscli, and agentcore packages - Merged main branch changes with conflict resolution - Restructured README.md to follow template format with overview, prerequisites, setup, and execution sections - Created detailed documentation structure in docs/ folder with specialized content files - Updated package dependencies to use version constraints instead of local wheel files - Removed production-specific language and focused on demo/sample implementation - Added comprehensive documentation covering agents, configuration, deployment, and development
45 lines
834 B
Markdown
45 lines
834 B
Markdown
# Development
|
|
|
|
## Running Tests
|
|
|
|
The SRE Agent includes comprehensive test coverage to ensure reliability:
|
|
|
|
```bash
|
|
# Run all tests
|
|
pytest
|
|
|
|
# Run tests with coverage report
|
|
pytest --cov=sre_agent --cov-report=html
|
|
open htmlcov/index.html # View coverage report
|
|
|
|
# Run specific test categories
|
|
pytest tests/unit/ # Fast unit tests
|
|
pytest tests/integration/ # Integration tests with mocked APIs
|
|
pytest tests/e2e/ # End-to-end tests with demo backend
|
|
|
|
# Run tests in parallel for speed
|
|
pytest -n auto
|
|
|
|
# Run with verbose output for debugging
|
|
pytest -vv -s
|
|
```
|
|
|
|
## Code Quality
|
|
|
|
Maintain code quality using automated tools:
|
|
|
|
```bash
|
|
# Format code with black
|
|
black sre_agent/ tests/
|
|
|
|
# Check type hints with mypy
|
|
mypy sre_agent/
|
|
|
|
# Lint code with ruff
|
|
ruff check sre_agent/
|
|
|
|
# Run all quality checks
|
|
make quality
|
|
```
|
|
|