{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

PackagePrefixClasspathSuite

@ExperimentalTestApi class PackagePrefixClasspathSuite : Suite

kotlin.Any
   ↳ org.junit.runner.Runner
     ↳ org.junit.runners.ParentRunner
       ↳ org.junit.runners.Suite
         ↳ androidx.test.runner.suites.PackagePrefixClasspathSuite

An alternative to AndroidClasspathSuite that ignores classes whose java package is not within the current class's java package.

Example usage: * *

package com.example.foo;

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

This class was intended for large applications using AndroidClasspathSuite results in LinearAlloc errors (b/36936369) and performance overhead when scanning the entire classpath.

This API is currently experimental and subject to change in future releases.

Summary

Public constructors

Inherited functions

From class org.junit.runners.ParentRunner
Statement!
Statement!
classBlock(notifier: RunNotifier!)
(Mutable)List<TestRule!>!
Unit
TestClass!
createTestClass(testClass: Class<Any!>!)

This function is deprecated.

Unit
filter(filter: Filter!)
abstract (Mutable)List<T!>!
Description!
String!
Array<Annotation!>!
TestClass!
Boolean
isIgnored(child: T!)
Unit
order(orderer: Orderer!)
Unit
run(notifier: RunNotifier!)
Unit
runLeaf(
    statement: Statement!,
    description: Description!,
    notifier: RunNotifier!
)
Unit
Unit
sort(sorter: Sorter!)
Unit
validatePublicVoidNoArgMethods(
    annotation: Class<Annotation!>!,
    isStatic: Boolean,
    errors: (Mutable)List<Throwable!>!
)
Statement!
Statement!
Statement!
From class org.junit.runner.Runner
From class org.junit.runners.Suite
Description!
java-static Runner!
(Mutable)List<Runner!>!
Unit
runChild(runner: Runner!, notifier: RunNotifier!)

Inherited properties

From class org.junit.runners.ParentRunner

Public constructors

PackagePrefixClasspathSuite

PackagePrefixClasspathSuite()