# JUnitEngineSpec

[View Source](https://cs.android.com/search?q=file:com/android/build/api/dsl/JUnitEngineSpec.kt+class:com.android.build.api.dsl.JUnitEngineSpec) Added in 9.6.0-alpha03


```
@Incubating
interface JUnitEngineSpec
```

<br />

*** ** * ** ***

Spec for running a JUnit engine against a test suite.

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `@https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/JUnitEngineSpec#addInputProperty(kotlin.String,org.gradle.api.provider.Provider)(propertyName: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, propertyValue: https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Provider.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>)` Adds a new key value pair property to the list of inputs of this test engine, the value will only be resolved at execution time. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `@https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/JUnitEngineSpec#addInputProperty(kotlin.String,kotlin.String)(propertyName: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, propertyValue: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` Adds a new key value pair property to the list of inputs for this test engine. |

| ### Public properties |
|---|---|
| `https://docs.gradle.org/current/javadoc/org/gradle/api/artifacts/dsl/DependencyCollector.html` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/JUnitEngineSpec#enginesDependencies()` Returns a `https://docs.gradle.org/current/javadoc/org/gradle/api/artifacts/dsl/DependencyCollector.html` that collects the set of runtime-only dependencies to find and load configured junit engines. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/JUnitEngineSpec#includeEngines()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html<https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/AgpTestSuiteInputParameters>` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/JUnitEngineSpec#inputs()` Identifies the inputs required by the junit engine running the test suite. |

## Public functions

### addInputProperty

Added in 9.6.0-alpha03

```
@Incubating
fun addInputProperty(propertyName: String, propertyValue: Provider<String>): Unit
```

Adds a new key value pair property to the list of inputs of this test engine, the value will only be resolved at execution time.

### addInputProperty

Added in 9.6.0-alpha03

```
@Incubating
fun addInputProperty(propertyName: String, propertyValue: String): Unit
```

Adds a new key value pair property to the list of inputs for this test engine.

## Public properties

### enginesDependencies

Added in 9.6.0-alpha03

```
val enginesDependencies: DependencyCollector
```

Returns a `https://docs.gradle.org/current/javadoc/org/gradle/api/artifacts/dsl/DependencyCollector.html` that collects the set of runtime-only dependencies to find and load configured junit engines.

### includeEngines

Added in 9.6.0-alpha03

```
val includeEngines: MutableSet<String>
```

### inputs

Added in 9.6.0-alpha03

```
val inputs: MutableList<AgpTestSuiteInputParameters>
```

Identifies the inputs required by the junit engine running the test suite.