-
- All Implemented Interfaces:
-
kotlin.Comparable,org.gradle.api.Task,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.IConventionAware,org.gradle.api.internal.TaskInternal,org.gradle.api.plugins.ExtensionAware,org.gradle.api.reporting.Reporting,org.gradle.api.tasks.VerificationTask,org.gradle.util.Configurable,org.jetbrains.kotlin.gradle.targets.js.npm.RequiresNpmDependencies
public abstract class KotlinJsTest extends KotlinTest implements RequiresNpmDependencies
-
-
Field Summary
Fields Modifier and Type Field Description private Map<String, String>environmentprivate KotlinJsTestFrameworktestFrameworkprivate final StringtestFrameworkSettingsprivate final RegularFilePropertyinputFilePropertyprivate Booleandebugprivate final FileCollectionruntimeClasspathprivate final StringcompilationIdprivate final BooleannodeModulesRequiredprivate final Set<RequiredKotlinJsDependency>requiredNpmDependenciesprivate transient KotlinJsCompilationcompilationprivate StringtargetNameprivate Set<String>excludesprivate final Set<String>includePatternsprivate final Set<String>excludePatternsprivate final FileResolverfileResolverprivate final ExecHandleFactoryexecHandleFactoryprivate BooleanignoreRunFailures
-
Constructor Summary
Constructors Constructor Description KotlinJsTest(KotlinJsCompilation compilation)
-
Method Summary
-
Methods inherited from class org.jetbrains.kotlin.gradle.targets.js.testing.KotlinJsTest
addRunListener -
Methods inherited from class org.gradle.api.internal.ConventionTask
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService -
Methods inherited from class org.gradle.api.DefaultTask
appendParallelSafeAction, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getOnlyIf, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, isEnabled, isHasCustomActions, prependParallelSafeAction, setImpliesSubProjects -
Methods inherited from class org.gradle.api.tasks.testing.AbstractTestTask
conventionMapping, conventionMapping, getConventionMapping -
Methods inherited from class org.jetbrains.kotlin.gradle.tasks.KotlinTest
addTestListener, addTestOutputListener, afterSuite, afterTest, beforeSuite, beforeTest, getBinResultsDir, getBinaryResultsDirectory, getBuildOperationExecutor, getFailFast, getFileSystemOperations, getFilter, getHostnameLookup, getIgnoreFailures, getInstantiator, getListenerManager, getNoMatchingTestErrorReasons, getProgressLoggerFactory, getReports, getTestListenerInternalBroadcaster, getTestLogging, getTestOutputListenerBroadcaster, getTextOutputFactory, onOutput, removeTestListener, removeTestOutputListener, reports, reports, setBinResultsDir, setFailFast, setIgnoreFailures, setTestNameIncludePatterns, setTestReporter, testLogging, testLogging -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
KotlinJsTest
KotlinJsTest(KotlinJsCompilation compilation)
-
-
Method Detail
-
getEnvironment
final Map<String, String> getEnvironment()
-
setEnvironment
final Unit setEnvironment(@Input() Map<String, String> environment)
-
getTestFramework
@Internal() final KotlinJsTestFramework getTestFramework()
-
setTestFramework
final Unit setTestFramework(KotlinJsTestFramework testFramework)
-
getTestFrameworkSettings
@Input() final String getTestFrameworkSettings()
-
getInputFileProperty
final RegularFileProperty getInputFileProperty()
-
getRuntimeClasspath
@PathSensitive(value = PathSensitivity.ABSOLUTE)@IgnoreEmptyDirectories()@InputFiles() final FileCollection getRuntimeClasspath()
-
getCompilationId
@Input() final String getCompilationId()
-
getNodeModulesRequired
@Internal() Boolean getNodeModulesRequired()
-
getRequiredNpmDependencies
@Internal() Set<RequiredKotlinJsDependency> getRequiredNpmDependencies()
-
getCompilation
KotlinJsCompilation getCompilation()
-
setCompilation
Unit setCompilation(@Internal() KotlinJsCompilation compilation)
-
getTargetName
final String getTargetName()
-
setTargetName
final Unit setTargetName(@Input() @Optional() String targetName)
-
getExcludes
final Set<String> getExcludes()
-
setExcludes
final Unit setExcludes(@Deprecated(message = "Use filter.excludePatterns instead.", replaceWith = @ReplaceWith(imports = {}, expression = "filter.excludePatterns")) @Internal() Set<String> excludes)
-
getIncludePatterns
@Input() final Set<String> getIncludePatterns()
-
getExcludePatterns
@Input() final Set<String> getExcludePatterns()
-
getFileResolver
@Inject() FileResolver getFileResolver()
-
getExecHandleFactory
@Inject() ExecHandleFactory getExecHandleFactory()
-
getIgnoreRunFailures
final Boolean getIgnoreRunFailures()
-
setIgnoreRunFailures
final Unit setIgnoreRunFailures(@Input() Boolean ignoreRunFailures)
-
onTestFrameworkSet
final Unit onTestFrameworkSet(Function1<KotlinJsTestFramework, Unit> action)
-
useNodeJs
@Deprecated(message = "Use useMocha instead", replaceWith = @ReplaceWith(imports = {}, expression = "useMocha()")) final KotlinMocha useNodeJs()
-
useNodeJs
@Deprecated(message = "Use useMocha instead", replaceWith = @ReplaceWith(imports = {}, expression = "useMocha(body)")) final KotlinMocha useNodeJs(Function1<KotlinMocha, Unit> body)
-
useNodeJs
@Deprecated(message = "Use useMocha instead", replaceWith = @ReplaceWith(imports = {}, expression = "useMocha(fn)")) final Unit useNodeJs(Action<KotlinMocha> fn)
-
useMocha
final KotlinMocha useMocha()
-
useMocha
final KotlinMocha useMocha(Function1<KotlinMocha, Unit> body)
-
useMocha
final Unit useMocha(Action<KotlinMocha> fn)
-
useKarma
final KotlinKarma useKarma()
-
useKarma
final KotlinKarma useKarma(Function1<KotlinKarma, Unit> body)
-
useKarma
final Unit useKarma(Action<KotlinKarma> fn)
-
environment
final Unit environment(String key, String value)
-
executeTests
Unit executeTests()
-
-
-
-