-
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
Merged
Merged
Kotest CI result 업로드 #137
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
6850487
feat : kotest CI 환경 설정
HamBP 836a107
chore : ci 파일, test task를 실행하도록 변경
HamBP 48ad7a9
chore : TestConfig -> KoTestConfig 네이밍 변경 및 상위 패키지로 이동
2taezeat bde7743
chore : root gradle 에 tasks 추가
2taezeat f385d51
test : gradle 확인용 SampleTest 추가
2taezeat 2fea3ac
chore: android-ci, run test 명령 변경
2taezeat fa297b7
test : SampleTest 변경
2taezeat 0b3e793
test : SampleTest 모두 통과하게 수정
2taezeat 1d81f0c
chore : test Task 카멜 케이스로 변경
2taezeat 0d45f27
chore: android-ci, run test 변경
2taezeat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
6 changes: 3 additions & 3 deletions
6
...tchytape/core/domain/signup/TestConfig.kt → ...ok/catchytape/core/domain/KoTestConfig.kt
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,16 +1,16 @@ | ||
package com.ohdodok.catchytape.core.domain.signup | ||
package com.ohdodok.catchytape.core.domain | ||
|
||
import io.kotest.core.config.AbstractProjectConfig | ||
import io.kotest.core.extensions.Extension | ||
import io.kotest.extensions.junitxml.JunitXmlReporter | ||
|
||
class TestConfig : AbstractProjectConfig() { | ||
class KoTestConfig : AbstractProjectConfig() { | ||
|
||
override fun extensions(): List<Extension> = listOf( | ||
JunitXmlReporter( | ||
includeContainers = false, // don't write out status for all tests | ||
useTestPathAsName = true, // use the full test path (ie, includes parent test names) | ||
outputDir = "test-results/excludeContainers" | ||
outputDir = "../build/test-results" | ||
) | ||
) | ||
} |
20 changes: 20 additions & 0 deletions
20
android/core/domain/src/test/java/com/ohdodok/catchytape/core/domain/SampleTest.kt
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.ohdodok.catchytape.core.domain | ||
|
||
import io.kotest.core.spec.style.FunSpec | ||
import io.kotest.matchers.shouldBe | ||
|
||
class SampleTest : FunSpec({ | ||
|
||
test("test sample 1") { | ||
1 + 2 shouldBe 3 | ||
} | ||
|
||
test("test sample 2") { | ||
3 + 4 shouldBe 7 | ||
} | ||
|
||
test("test sample 3") { | ||
3 + 7 shouldBe 10 | ||
} | ||
|
||
}) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
기존에 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.
아 여기가 루트구나