This repository has been archived by the owner on Dec 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
352ad64
commit 7a2cb79
Showing
1 changed file
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,25 @@ | ||
# products-api-test-coverage | ||
# Cobertura de Código com JaCoCo | ||
|
||
Este projeto utiliza o [JaCoCo](https://www.jacoco.org/jacoco/) para medir a cobertura de código durante a execução dos testes automatizados. A integração com o **GitHub Actions** permite a geração e validação dos relatórios de cobertura diretamente na pipeline de CI/CD. | ||
|
||
## 📋 Configuração | ||
|
||
### 1. Configuração no `build.gradle` | ||
|
||
Certifique-se de que o arquivo `build.gradle` inclua as configurações do JaCoCo: | ||
|
||
```groovy | ||
plugins { | ||
id 'jacoco' | ||
} | ||
jacoco { | ||
toolVersion = "0.8.10" | ||
} | ||
tasks.jacocoTestReport { | ||
reports { | ||
xml.required.set(true) | ||
html.required.set(true) | ||
} | ||
} |