# InstrumentationScope

# InstrumentationScope

```
@Incubating enum class InstrumentationScope
```

|---|---|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                                                            |||
| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\<[com.android.build.api.instrumentation.InstrumentationScope](https://developer.android.com/reference/tools/gradle-api/4.2/com/android/build/api/instrumentation/InstrumentationScope#)\> ||
|   | ↳ | [com.android.build.api.instrumentation.InstrumentationScope](https://developer.android.com/reference/tools/gradle-api/4.2/com/android/build/api/instrumentation/InstrumentationScope#) |

|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [InstrumentationScope.ALL](https://developer.android.com/reference/tools/gradle-api/4.2/com/android/build/api/instrumentation/InstrumentationScope#ENUM_VALUE:ALL),[InstrumentationScope.PROJECT](https://developer.android.com/reference/tools/gradle-api/4.2/com/android/build/api/instrumentation/InstrumentationScope#ENUM_VALUE:PROJECT) |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------| | [InstrumentationScope.ALL](https://developer.android.com/reference/tools/gradle-api/4.2/com/android/build/api/instrumentation/InstrumentationScope#ENUM_VALUE:ALL)         | Instrument the classes of the current project and its library dependencies. | | [InstrumentationScope.PROJECT](https://developer.android.com/reference/tools/gradle-api/4.2/com/android/build/api/instrumentation/InstrumentationScope#ENUM_VALUE:PROJECT) | Instrument the classes of the current project only.                         | |

## Summary

|                                                                                                       ### Enum values                                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [ALL](https://developer.android.com/reference/tools/gradle-api/4.2/com/android/build/api/instrumentation/InstrumentationScope#ENUM_VALUE:ALL) Instrument the classes of the current project and its library dependencies. |
| [PROJECT](https://developer.android.com/reference/tools/gradle-api/4.2/com/android/build/api/instrumentation/InstrumentationScope#ENUM_VALUE:PROJECT) Instrument the classes of the current project only.                 |

## Enum values

### ALL

```
enum val ALL : InstrumentationScope
```

Instrument the classes of the current project and its library dependencies.

This can't be applied to library projects, as instrumenting library dependencies will have no effect on library consumers.  

### PROJECT

```
enum val PROJECT : InstrumentationScope
```

Instrument the classes of the current project only.

Libraries that this project depends on will not be instrumented.