{"id":19283268,"url":"https://github.com/yeahdy/exam-test-pratice","last_synced_at":"2025-02-23T22:26:31.404Z","repository":{"id":247966545,"uuid":"823950139","full_name":"yeahdy/exam-test-pratice","owner":"yeahdy","description":"계산기를 통해 성적을 계산하는 간단한 어플리케이션으로 Spring Test 를 위해 만든 프로젝트","archived":false,"fork":false,"pushed_at":"2024-07-11T14:10:00.000Z","size":2472,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-05T17:29:27.167Z","etag":null,"topics":["git-actions","jacoco","junit5","mockito","spotless","test-containers"],"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/yeahdy.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-07-04T04:32:53.000Z","updated_at":"2024-07-11T14:10:04.000Z","dependencies_parsed_at":"2024-07-11T16:15:55.678Z","dependency_job_id":"613717a4-19ff-4714-b63e-bd7ab7a3e921","html_url":"https://github.com/yeahdy/exam-test-pratice","commit_stats":null,"previous_names":["yeahdy/exam-test-pratice"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeahdy%2Fexam-test-pratice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeahdy%2Fexam-test-pratice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeahdy%2Fexam-test-pratice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeahdy%2Fexam-test-pratice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yeahdy","download_url":"https://codeload.github.com/yeahdy/exam-test-pratice/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240387487,"owners_count":19793357,"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":["git-actions","jacoco","junit5","mockito","spotless","test-containers"],"created_at":"2024-11-09T21:30:48.358Z","updated_at":"2025-02-23T22:26:31.338Z","avatar_url":"https://github.com/yeahdy.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 📑Kind of Test\n\n- **`JUnit`** 단위테스트\n- **`Mock`** 단위테스트\n- **`testcontainers` 통합테스트**\n    - MySQL\n    - Redis\n    - AWS S3\n    - Kafka\n- **`archunit`**\n    - 패키지명-클래스명 코드컨벤션\n    - 계층 간 의존성 테스트\n- **`jacoco` 테스트코드 커버리지**\u003c/br\u003e\n  - gradle 실행\n    \n    ```bash\n    $ gradle jacocoTestReport\n    ```\n  \n  - jacoco 테스트 커버리지 리포트\u003c/br\u003e\n    .\\build\\jacoco\\jacoco.html\\index.html\n  \n- **`spotless` 코드 포맷팅을 자동화**\n    \n    ```yaml\n    //build.gradle\n    spotless {\n        java {\n            googleJavaFormat()\n            removeUnusedImports()\n            trimTrailingWhitespace()\n            endWithNewline()\n        }\n    }\n    ```\n\n    - **googleJavaFormat()**: Google의 Java 스타일 가이드에 따라 코드를 포맷팅\n    - **removeUnusedImports()**: 사용되지 않는 import 문을 자동 제거\n    - **trimTrailingWhitespace()**: 각 줄 끝에 있는 불필요한 공백 제거\n    - **endWithNewline()**: 파일 끝에 새 줄 추가\n\n    \u003c/br\u003e\n    \n    - gradle pre-commit 생성\u003c/br\u003e\n      commit 전 spotless 자동 실행 후 commit\n\n      ```yaml\n      $ gradle addGitPrecommitHook\n      ```\n    \n    \n\u003c/br\u003e\n\n## ⚙️Infra\n\n- Docker\n    - MySQL\n    - Flyway\u003c/br\u003e\n    관련 이슈: [Fiyway checksum 이슈](https://velog.io/@yeahdy/Flyway-Migration-checksum-mismatch-에러-해결)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeahdy%2Fexam-test-pratice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyeahdy%2Fexam-test-pratice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeahdy%2Fexam-test-pratice/lists"}