ihub-test
...Less than 1 minute
ihub-test
plugin description
ihub-test
plugin configuration test task.
Information | Description |
---|---|
Plugin ID | pub.ihub.plugin.ihub-test |
Plugin Name | Test Plugin |
Plugin Type | Project [^Project] |
Extension Name | iHubTest |
Plugin Dependencies | ihub-bom,test-report-agregation(main item ) |
Extended Properties
Extension | Description | Default | Ext[^Ext] | Prj[^Prj] | Sys[^Sys] | Env[^Env] |
---|---|---|---|---|---|---|
enabled | Enable Test | true | ✔ | ✔ | ✔ | ❌ |
classes | Include test classes (, separated, supported wildcard* ) | **/*Test*,**/*FT*,**/*UT* | ✔ | ✔ | ✔ | ❌ |
forkEvery | Restart fork process per runx test class | 100 | ✔ | ✔ | ✔ | ❌ |
maxParallelForks | Max startup processes | 1 | ✔ | ✔ | ✔ | ❌ |
runProperties | AttributeSee on task runtime | {System.properties} | ✔ | ❌ | ❌ | ❌ |
runIncludePropNames | Running with system property name (, separated, supported wildcard* )See | ❌ | ✔ | ✔ | ✔ | ❌ |
runSkippedPropNames | Exclude system property name on runtime (, separated, supported wildcard* )See | ❌ | ✔ | ✔ | ✔ | ❌ |
EnabledLocalProperties | Enable local propertiesSee | true | ✔ | ✔ | ❌ | ❌ |
debug | Enable test debugging | false | ✔ | ✔ | ✔ | ❌ |
FailFast | Stop testing whenever a test fails | false | ✔ | ✔ | ✔ | ❌ |
testFramework | Test Frame | See more | ✔ | ✔ | ❌ | ❌ |
Plugin Installation
Kotlin
plugins {
id("pub.ihub.plugin.ihub-test")
}
Groovy
plugins {
id 'pub.ihub.plugin.ihub-test'
}
Configuration Example
Kotlin
iHubTest {
enabled.set(true)
FailFast.set(true)
}
Groovy
iHubTest LO
enabled = true
ailFast = true
}
Test Frame
Tips
- Testframe dependency configuration currently supports:
SPOCK
,JUNITA_JUPITER
,NONE
Groovy
environmental defaultSPOCK
,Java
environmental defaultJUNITA_JUPITER
::
SPOCK
dependencies are
testImplementation 'org.spockframe: spock-spring'
testRuntimesOnly 'com.athaydes:spock-reports'
}
JUNIT_JUPITER
Dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter'
}