{"id":26288892,"url":"https://github.com/dilermando-lima/spring-boot-complete-unit-test","last_synced_at":"2025-03-14T22:15:23.195Z","repository":{"id":215153810,"uuid":"738246232","full_name":"dilermando-lima/spring-boot-complete-unit-test","owner":"dilermando-lima","description":"Project covers how to test api rest springboot with mockito and junit5","archived":false,"fork":false,"pushed_at":"2024-03-28T20:41:12.000Z","size":89,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T22:15:16.462Z","etag":null,"topics":["example-project","java","mockito","spring-boot","unit-testing"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dilermando-lima.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-02T19:26:06.000Z","updated_at":"2025-02-25T14:00:48.000Z","dependencies_parsed_at":"2024-01-08T21:27:26.127Z","dependency_job_id":"f4a254f6-1a23-41ee-a508-96a975c69290","html_url":"https://github.com/dilermando-lima/spring-boot-complete-unit-test","commit_stats":null,"previous_names":["dilermando-lima/spring-boot-test-example","dilermando-lima/spring-boot-complete-unit-test"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dilermando-lima%2Fspring-boot-complete-unit-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dilermando-lima%2Fspring-boot-complete-unit-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dilermando-lima%2Fspring-boot-complete-unit-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dilermando-lima%2Fspring-boot-complete-unit-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dilermando-lima","download_url":"https://codeload.github.com/dilermando-lima/spring-boot-complete-unit-test/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243652684,"owners_count":20325611,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["example-project","java","mockito","spring-boot","unit-testing"],"created_at":"2025-03-14T22:15:22.264Z","updated_at":"2025-03-14T22:15:23.188Z","avatar_url":"https://github.com/dilermando-lima.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Exemplo de como implementar testes unitários\r\n\r\n## Sobre \r\n\r\nEste projeto tenta mostrar na pratica como adicionar testes unitários efetivos em projetos utilizando mokito, junit5  e spring boot.\r\n\r\n\u003e Este projeto não segue padrões de arquiteturas mais avançadas como clean archtecture, Hexagonal archtecture, ou princípios do SOLID, pois o intuito é ser simples e focar na atuação efetiva dos testes\r\n\r\n### Swagger\r\nApós iniciar a aplicaçao rest que por padrão se encontra na porta 8081 basta acessar o link http://localhost:8081/swagger-ui/index.html para acessar a documentação rest.\r\n\r\n\r\n\r\n### Cobertura de código\r\nEste projeto usa jacoco para análise de cobertura de testes para executar os testes e o relatório de cobertura basta rodar o cammando abaixo:\r\n\r\n```bash\r\ngradle jacocoTestReport\r\n```\r\n\r\n\u003e Após rodar as tasks do jacoco acesso o relatório em HTML gerado neste próprio projeto em  `./build/reports/jacoco/test/html/index.html`\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdilermando-lima%2Fspring-boot-complete-unit-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdilermando-lima%2Fspring-boot-complete-unit-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdilermando-lima%2Fspring-boot-complete-unit-test/lists"}