# PackagePrefixClasspathSuite

Artifact: [androidx.test:runner](https://developer.android.com/jetpack/androidx/releases/test) [View Source](https://cs.android.com/search?q=file:androidx/test/runner/suites/PackagePrefixClasspathSuite.java+class:androidx.test.runner.suites.PackagePrefixClasspathSuite)

*** ** * ** ***

<br />

```
class PackagePrefixClasspathSuite : Suite
```

<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) ||||
|   | ↳ | [org.junit.runners.ParentRunner](https://junit.org/junit4/javadoc/latest/org/junit/runners/ParentRunner.html) |||
|   |   | ↳ | [org.junit.runners.Suite](https://junit.org/junit4/javadoc/latest/org/junit/runners/Suite.html) ||
|   |   |   | ↳ | [androidx.test.runner.suites.PackagePrefixClasspathSuite](https://developer.android.com/reference/kotlin/androidx/test/runner/suites/PackagePrefixClasspathSuite) |

*** ** * ** ***

An alternative to `https://developer.android.com/reference/kotlin/androidx/test/runner/suites/AndroidClasspathSuite` that ignores classes whose java package is not within the current class's java package.

Example usage: \* \*

```kotlin
package com.example.foo;

@RunWith(PackagePrefixClasspathSuite.class)
public class AllTests {
}
```

This class was intended for large applications using `https://developer.android.com/reference/kotlin/androidx/test/runner/suites/AndroidClasspathSuite` results in LinearAlloc errors (b/36936369) and performance overhead when scanning the entire classpath.

## Summary

### Inherited functions

From [org.junit.runners.ParentRunner](https://junit.org/junit4/javadoc/latest/org/junit/runners/ParentRunner.html) `https://junit.org/junit4/javadoc/latest/org/junit/runners/model/Statement.html!` `https://junit.org/junit4/javadoc/latest/org/junit/runners/ParentRunner.html#childrenInvoker-org.junit.runner.notification.RunNotifier-(notifier: https://junit.org/junit4/javadoc/latest/org/junit/runner/notification/RunNotifier.html!)` `https://junit.org/junit4/javadoc/latest/org/junit/runners/model/Statement.html!` `https://junit.org/junit4/javadoc/latest/org/junit/runners/ParentRunner.html#classBlock-org.junit.runner.notification.RunNotifier-(notifier: https://junit.org/junit4/javadoc/latest/org/junit/runner/notification/RunNotifier.html!)` `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://junit.org/junit4/javadoc/latest/org/junit/rules/TestRule.html!>!` `https://junit.org/junit4/javadoc/latest/org/junit/runners/ParentRunner.html#classRules--()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://junit.org/junit4/javadoc/latest/org/junit/runners/ParentRunner.html#collectInitializationErrors-java.util.List&lt;java.lang.Throwable&gt;-(errors: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html!>!)` `https://junit.org/junit4/javadoc/latest/org/junit/runners/model/TestClass.html!` `https://junit.org/junit4/javadoc/latest/org/junit/runners/ParentRunner.html#createTestClass-java.lang.Class&lt;?&gt;-(testClass: https://developer.android.com/reference/java/lang/Class.html<*>!)`

**This function is deprecated.**
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://junit.org/junit4/javadoc/latest/org/junit/runners/ParentRunner.html#filter-org.junit.runner.manipulation.Filter-(filter: https://junit.org/junit4/javadoc/latest/org/junit/runner/manipulation/Filter.html!)` `abstract (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T!>!` `https://junit.org/junit4/javadoc/latest/org/junit/runners/ParentRunner.html#getChildren--()` `https://junit.org/junit4/javadoc/latest/org/junit/runner/Description.html!` `https://junit.org/junit4/javadoc/latest/org/junit/runners/ParentRunner.html#getDescription--()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://junit.org/junit4/javadoc/latest/org/junit/runners/ParentRunner.html#getName--()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-annotation/index.html!>!` `https://junit.org/junit4/javadoc/latest/org/junit/runners/ParentRunner.html#getRunnerAnnotations--()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `https://junit.org/junit4/javadoc/latest/org/junit/runners/ParentRunner.html#isIgnored-T-(child: T!)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://junit.org/junit4/javadoc/latest/org/junit/runners/ParentRunner.html#order-org.junit.runner.manipulation.Orderer-(orderer: https://junit.org/junit4/javadoc/latest/org/junit/runner/manipulation/Orderer.html!)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://junit.org/junit4/javadoc/latest/org/junit/runners/ParentRunner.html#run-org.junit.runner.notification.RunNotifier-(notifier: https://junit.org/junit4/javadoc/latest/org/junit/runner/notification/RunNotifier.html!)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://junit.org/junit4/javadoc/latest/org/junit/runners/ParentRunner.html#runLeaf-org.junit.runners.model.Statement-org.junit.runner.Description-org.junit.runner.notification.RunNotifier-(

statement: https://junit.org/junit4/javadoc/latest/org/junit/runners/model/Statement.html!,

description: https://junit.org/junit4/javadoc/latest/org/junit/runner/Description.html!,

notifier: https://junit.org/junit4/javadoc/latest/org/junit/runner/notification/RunNotifier.html!

)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://junit.org/junit4/javadoc/latest/org/junit/runners/ParentRunner.html#setScheduler-org.junit.runners.model.RunnerScheduler-(scheduler: https://junit.org/junit4/javadoc/latest/org/junit/runners/model/RunnerScheduler.html!)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://junit.org/junit4/javadoc/latest/org/junit/runners/ParentRunner.html#sort-org.junit.runner.manipulation.Sorter-(sorter: https://junit.org/junit4/javadoc/latest/org/junit/runner/manipulation/Sorter.html!)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://junit.org/junit4/javadoc/latest/org/junit/runners/ParentRunner.html#validatePublicVoidNoArgMethods-java.lang.Class&lt;? extends java.lang.annotation.Annotation&gt;-boolean-java.util.List&lt;java.lang.Throwable&gt;-(

annotation: https://developer.android.com/reference/java/lang/Class.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-annotation/index.html!>!,

isStatic: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html,

errors: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html!>!

)` `https://junit.org/junit4/javadoc/latest/org/junit/runners/model/Statement.html!` `https://junit.org/junit4/javadoc/latest/org/junit/runners/ParentRunner.html#withAfterClasses-org.junit.runners.model.Statement-(statement: https://junit.org/junit4/javadoc/latest/org/junit/runners/model/Statement.html!)` `https://junit.org/junit4/javadoc/latest/org/junit/runners/model/Statement.html!` `https://junit.org/junit4/javadoc/latest/org/junit/runners/ParentRunner.html#withBeforeClasses-org.junit.runners.model.Statement-(statement: https://junit.org/junit4/javadoc/latest/org/junit/runners/model/Statement.html!)` `https://junit.org/junit4/javadoc/latest/org/junit/runners/model/Statement.html!` `https://junit.org/junit4/javadoc/latest/org/junit/runners/ParentRunner.html#withInterruptIsolation-org.junit.runners.model.Statement-(statement: https://junit.org/junit4/javadoc/latest/org/junit/runners/model/Statement.html!)` 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` `https://junit.org/junit4/javadoc/latest/org/junit/runner/Runner.html#testCount--()` From [org.junit.runners.Suite](https://junit.org/junit4/javadoc/latest/org/junit/runners/Suite.html) `https://junit.org/junit4/javadoc/latest/org/junit/runner/Description.html!` `https://junit.org/junit4/javadoc/latest/org/junit/runners/Suite.html#describeChild-org.junit.runner.Runner-(child: https://junit.org/junit4/javadoc/latest/org/junit/runner/Runner.html!)` `java-static https://junit.org/junit4/javadoc/latest/org/junit/runner/Runner.html!` `https://junit.org/junit4/javadoc/latest/org/junit/runners/Suite.html#emptySuite--()` `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://junit.org/junit4/javadoc/latest/org/junit/runner/Runner.html!>!` `https://junit.org/junit4/javadoc/latest/org/junit/runners/Suite.html#getChildren--()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://junit.org/junit4/javadoc/latest/org/junit/runners/Suite.html#runChild-org.junit.runner.Runner-org.junit.runner.notification.RunNotifier-(runner: https://junit.org/junit4/javadoc/latest/org/junit/runner/Runner.html!, notifier: https://junit.org/junit4/javadoc/latest/org/junit/runner/notification/RunNotifier.html!)`

### Inherited properties

From [org.junit.runners.ParentRunner](https://junit.org/junit4/javadoc/latest/org/junit/runners/ParentRunner.html) `https://junit.org/junit4/javadoc/latest/org/junit/runners/model/TestClass.html!` `https://junit.org/junit4/javadoc/latest/org/junit/runners/ParentRunner.html#testClass`