mirror of
https://github.com/octocat/Hello-World.git
synced 2026-06-04 14:17:09 +00:00
| src | ||
| tests | ||
| .gitignore | ||
| Jenkinsfile | ||
| pytest.ini | ||
| README | ||
| requirements.txt | ||
| SETUP_GUIDE.md | ||
# Hello World - Payment Test Suite This repository contains a dummy payment service with comprehensive test cases designed to run through Jenkins CI/CD pipeline. ## Quick Start ### Run Tests Locally ```bash pip install -r requirements.txt pytest tests/ -v ``` ### View Coverage ```bash pytest tests/ --cov=src --cov-report=html ``` ## What's Included - **Payment Service**: Dummy payment processing module - **21 Test Cases**: Comprehensive test coverage including positive, negative, and edge cases - **Jenkins Pipeline**: Automated CI/CD configuration - **Coverage Reports**: HTML and XML coverage reporting ## Documentation See [SETUP_GUIDE.md](SETUP_GUIDE.md) for complete setup instructions and Jenkins configuration. ## Test Results The test suite includes: - ✅ 4 Positive test cases - ❌ 8 Negative test cases - 🔍 9 Edge case tests Total: **21 automated tests** ## Jenkins Integration This project includes a complete Jenkinsfile that: 1. Checks out code 2. Sets up Python environment 3. Installs dependencies 4. Runs all tests 5. Generates coverage reports 6. Publishes results ## Project Structure ``` Hello-World/ ├── src/ # Payment service source code ├── tests/ # Test cases ├── Jenkinsfile # Jenkins pipeline └── requirements.txt # Dependencies ``` #<23> <20>W<EFBFBD>e<EFBFBD>b<EFBFBD>h<EFBFBD>o<EFBFBD>o<EFBFBD>k<EFBFBD> <20>t<EFBFBD>e<EFBFBD>s<EFBFBD>t<EFBFBD> <0A> <0A>