Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

📁 testing-best-practices/README.md

# 🧪 Testing & Code Quality

Viết code là chưa đủ — cần đảm bảo nó **đúng**, **an toàn**, và **dễ kiểm tra**.

## ✅ Mục tiêu
- Viết unit test rõ ràng, dễ bảo trì
- Test tích hợp với Testcontainers
- Hiểu mock, stub, spy
- Áp dụng mutation testing, coverage

## 📁 Nội dung
- `unit/` – test với JUnit5
- `mocking/` – Mockito
- `integration/` – PostgreSQL testcontainer
- `mutation/` – Pitest example

## ▶️ Cách chạy
```bash
mvn test