Go to file
2026-05-06 12:22:52 +05:30
src Add payment test suite with Jenkins CI/CD integration 2026-05-06 12:01:34 +05:30
tests Add payment test suite with Jenkins CI/CD integration 2026-05-06 12:01:34 +05:30
.gitignore Add payment test suite with Jenkins CI/CD integration 2026-05-06 12:01:34 +05:30
Jenkinsfile Fix Jenkinsfile to use shell commands for Linux environment 2026-05-06 12:22:52 +05:30
pytest.ini Add payment test suite with Jenkins CI/CD integration 2026-05-06 12:01:34 +05:30
README Add payment test suite with Jenkins CI/CD integration 2026-05-06 12:01:34 +05:30
requirements.txt Add payment test suite with Jenkins CI/CD integration 2026-05-06 12:01:34 +05:30
SETUP_GUIDE.md Add payment test suite with Jenkins CI/CD integration 2026-05-06 12:01:34 +05:30

# 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
```