# TargetLibrary

Artifact: [androidx.test.ext:junit-gtest](https://developer.android.com/jetpack/androidx/releases/test-ext) [View Source](https://cs.android.com/search?q=file:androidx/test/ext/junitgtest/TargetLibrary.kt+class:androidx.test.ext.junitgtest.TargetLibrary) Added in [1.0.0-alpha03](https://developer.android.com/jetpack/androidx/releases/test-ext#1.0.0-alpha03) Deprecated in [1.0.0-alpha03](https://developer.android.com/jetpack/androidx/releases/test-ext#1.0.0-alpha03)

*** ** * ** ***


```
@Retention(value = AnnotationRetention.RUNTIME)
@Target(allowedTargets = [AnnotationTarget.CLASS])
@Inherited
annotation TargetLibrary
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This annotation is deprecated.**   
> Library is deprecated

Annotation used by GtestRunner to determine which Gtest suite to run. Should be called with the name of the library containing the Gtest suite, e.g. `TargetLibrary("mytest")`.

## Summary

| ### Public constructors |
|---|
| `[TargetLibrary](https://developer.android.com/reference/kotlin/androidx/test/ext/junitgtest/TargetLibrary#TargetLibrary(kotlin.String))(libraryName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` **This function is deprecated.** Library is deprecated |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/test/ext/junitgtest/TargetLibrary#libraryName()` **This property is deprecated.** Library is deprecated |

## Public constructors

### TargetLibrary

Added in [1.0.0-alpha03](https://developer.android.com/jetpack/androidx/releases/test-ext#1.0.0-alpha03) Deprecated in [1.0.0-alpha03](https://developer.android.com/jetpack/androidx/releases/test-ext#1.0.0-alpha03)

```
[TargetLibrary](https://developer.android.com/reference/kotlin/androidx/test/ext/junitgtest/TargetLibrary#TargetLibrary(kotlin.String))(libraryName: String)
```

> [!CAUTION]
> **This function is deprecated.**   
> Library is deprecated

## Public properties

### libraryName

```
val libraryName: String
```

> [!CAUTION]
> **This property is deprecated.**   
> Library is deprecated