# GtestRunner

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/GtestRunner.kt+class:androidx.test.ext.junitgtest.GtestRunner) 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)

*** ** * ** ***

<br />

```
class GtestRunner : Runner, Filterable
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [org.junit.runner.Runner](https://junit.org/junit4/javadoc/latest/org/junit/runner/Runner.html) ||
|   | ↳ | [androidx.test.ext.junitgtest.GtestRunner](https://developer.android.com/reference/kotlin/androidx/test/ext/junitgtest/GtestRunner) |

*** ** * ** ***

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

Custom Runner that implements a bridge between JUnit and GTest.

Use this Runner in a `@RunWith` annotation together with a `@TargetLibrary` annotation on an empty class to create a connected test that consists of native tests written against the Google Test Framework.

## Summary

| ### Public constructors |
|---|
| `[GtestRunner](https://developer.android.com/reference/kotlin/androidx/test/ext/junitgtest/GtestRunner#GtestRunner(java.lang.Class))(testClass: https://developer.android.com/reference/java/lang/Class.html<*>)` **This function is deprecated.** Library is deprecated |

| ### Public functions |
|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[filter](https://developer.android.com/reference/kotlin/androidx/test/ext/junitgtest/GtestRunner#filter(org.junit.runner.manipulation.Filter))(filter: https://junit.org/junit4/javadoc/latest/org/junit/runner/manipulation/Filter.html)` **This function is deprecated.** Library is deprecated |
| `open https://junit.org/junit4/javadoc/latest/org/junit/runner/Description.html` | `[getDescription](https://developer.android.com/reference/kotlin/androidx/test/ext/junitgtest/GtestRunner#getDescription())()` **This function is deprecated.** Library is deprecated |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[run](https://developer.android.com/reference/kotlin/androidx/test/ext/junitgtest/GtestRunner#run(org.junit.runner.notification.RunNotifier))(notifier: https://junit.org/junit4/javadoc/latest/org/junit/runner/notification/RunNotifier.html)` **This function is deprecated.** Library is deprecated |

| ### Public properties |
|---|---|
| `open https://junit.org/junit4/javadoc/latest/org/junit/runner/Description.html` | `https://developer.android.com/reference/kotlin/androidx/test/ext/junitgtest/GtestRunner#description()` **This property is deprecated.** Library is deprecated |

### Inherited functions

From [org.junit.runner.Runner](https://junit.org/junit4/javadoc/latest/org/junit/runner/Runner.html) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[testCount](https://junit.org/junit4/javadoc/latest/org/junit/runner/Runner.html#testCount--)()`

**This function is deprecated.** Library is deprecated

## Public constructors

### GtestRunner

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)

```
[GtestRunner](https://developer.android.com/reference/kotlin/androidx/test/ext/junitgtest/GtestRunner#GtestRunner(java.lang.Class))(testClass: Class<*>)
```

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

## Public functions

### filter

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)

```
open fun [filter](https://developer.android.com/reference/kotlin/androidx/test/ext/junitgtest/GtestRunner#filter(org.junit.runner.manipulation.Filter))(filter: Filter): Unit
```

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

### getDescription

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)

```
open fun [getDescription](https://developer.android.com/reference/kotlin/androidx/test/ext/junitgtest/GtestRunner#getDescription())(): Description
```

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

### run

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)

```
open fun [run](https://developer.android.com/reference/kotlin/androidx/test/ext/junitgtest/GtestRunner#run(org.junit.runner.notification.RunNotifier))(notifier: RunNotifier): Unit
```

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

## Public properties

### description

Added in 1.0.0-alpha03 Deprecated in 1.0.0-alpha03

```
open val description: Description
```

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