-
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
Changes from 8 commits
6850487
836a107
48ad7a9
bde7743
f385d51
2fea3ac
fa297b7
0b3e793
1d81f0c
0d45f27
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,12 +10,16 @@ plugins { | |
alias(libs.plugins.navigation.safe.args) apply false | ||
} | ||
|
||
tasks.register<Test>("test") { | ||
useJUnitPlatform() | ||
reports { | ||
junitXml.required.set(false) | ||
} | ||
systemProperty("gradle.build.dir", project.buildDir) | ||
|
||
tasks.register<Exec>("domain-unit-test") { | ||
commandLine = listOf("gradle", "core:domain:test") | ||
} | ||
|
||
|
||
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 commentThe reason will be displayed to describe this comment to others. Learn more. 이거 혹시 domain의 test만 돌아가지 않을까? There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. 아 여기가 루트구나 |
||
} | ||
|
||
|
||
true // Needed to make the Suppress annotation work for the plugins block |
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" | ||
) | ||
) | ||
} |
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 | ||
} | ||
|
||
}) |
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.
반영하겠습니다~