-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Milestone
Description
Testes Automatizados com BATS
Objetivo
Framework BATS para testes unitários e integração com cobertura ≥80%.
Escopo
- Testes das funções utilitárias (core/)
- Testes de validação de entrada
- Testes de cada módulo em modo dry-run
- Testes de rollback
- Testes de integração completa
- CI/CD integration com GitHub Actions
Estrutura de Testes
tests/
├── unit/
│ ├── functions.bats
│ ├── logging.bats
│ ├── validation.bats
│ └── colors.bats
├── modules/
│ ├── ssh-hardening.bats
│ ├── firewall.bats
│ ├── fail2ban.bats
│ └── ...
├── integration/
│ └── full-run.bats
└── fixtures/
└── test-configs/
Ferramentas
- BATS (Bash Automated Testing System)
- bats-support para assertions extras
- kcov para cobertura de código
Critério de Sucesso
- Cobertura ≥ 80%
- Todos os testes passando em CI/CD
- Documentação de como executar testes
Referências
Reactions are currently unavailable