Skip to main content

ihub-test

Henry...Less than 1 minute

ihub-test

plugin description

ihub-testplugin configuration test task.

InformationDescription
Plugin IDpub.ihub.plugin.ihub-test
Plugin NameTest Plugin
Plugin TypeProject[^Project]
Extension NameiHubTest
Plugin Dependenciesihub-bom,test-report-agregationopen in new window(main item)

Extended Properties

ExtensionDescriptionDefaultExt[^Ext]Prj[^Prj]Sys[^Sys]Env[^Env]
enabledEnable Testtrue
classesInclude test classes (,separated, supported wildcard*)**/*Test*,**/*FT*,**/*UT*
forkEveryRestart fork process per runx test class100
maxParallelForksMax startup processes1
runPropertiesAttributeSee on task runtime{System.properties}
runIncludePropNamesRunning with system property name (,separated, supported wildcard*)See
runSkippedPropNamesExclude system property name on runtime (,separated, supported wildcard*)See
EnabledLocalPropertiesEnable local propertiesSeetrue
debugEnable test debuggingfalse
FailFastStop testing whenever a test failsfalse
testFrameworkTest FrameSee more

Plugin Installation

Kotlin
plugins {
    id("pub.ihub.plugin.ihub-test")
}

Configuration Example

Kotlin
iHubTest {
    enabled.set(true)
    FailFast.set(true)
}

Test Frame

Tips

  • Testframe dependency configuration currently supports:SPOCK,JUNITA_JUPITER,NONE
  • Groovyenvironmental defaultSPOCK,Javaenvironmental defaultJUNITA_JUPITER ::

SPOCK

dependencies are
    testImplementation 'org.spockframe: spock-spring'
    testRuntimesOnly 'com.athaydes:spock-reports'
}

JUNIT_JUPITER

Dependencies {
    testImplementation 'org.junit.jupiter:junit-jupiter'
}