-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kotest CI result 업로드 #137
Kotest CI result 업로드 #137
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다~
android/build.gradle.kts
Outdated
} | ||
systemProperty("gradle.build.dir", project.buildDir) | ||
|
||
tasks.register<Exec>("domain-unit-test") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
기존의 다른 task의 이름이 testDebugUnitTest여서 카멜 케이스로 맞추는 게 어떨까 싶어!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
반영하겠습니다~
|
||
tasks.register<Exec>("debug-unit-test") { | ||
dependsOn("domain-unit-test") | ||
commandLine = listOf("gradle", "testDebugUnitTest") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 혹시 domain의 test만 돌아가지 않을까?
:core:domain 위치에서 testDebugUnitTest를 실행하면 부모의 testDebugUnitTest는 안 돌아갈 거 같아서!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BUILD SUCCESSFUL in 53s
167 actionable tasks: 162 executed, 5 up-to-date
기존에 testUnitDebugTest 와 동일하게 다른 Task test도 돌아가는거 확인했습니다~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아 여기가 루트구나
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sample 코드만 지우고 머지하면 될 것 같습니당!! 정말 수고 많았어용 👏🏻
다른 브랜치에서 SampleTest 삭제를 이미 해버려서, 지금 Merge 하겠습니다~ |
Issue
Overview
Kotest에서도 단위 테스트 보고서를 업로드하도록 설정
TestConfig path를 적절한 경로로 변경
project 수준의 build.gradle.kts이 아닌 모듈에다가 task를 설정했어야 했다.
testDebugUnitTest 로는 Domain 모듈을 인식 할 수 없으므로, root gradle에 domain:test 하는 Task 추가