Stay organized with collections
Save and categorize content based on your preferences.
UnitTestSuiteBuilder
open class UnitTestSuiteBuilder : TestSuiteBuilder
A suite builder that finds unit tests.
Summary
Inherited functions |
From class TestSuiteBuilder
TestSuite! |
build()
Call this method once you've configured your builder as desired.
|
TestSuiteBuilder! |
excludePackages(vararg packageNames: String!)
Exclude all tests in the given packages and all sub-packages, unless otherwise specified.
|
String! |
getSuiteName()
Subclasses use this method to determine the name of the suite.
|
TestSuiteBuilder! |
includeAllPackagesUnderHere()
Include all junit tests that satisfy the requirements in the calling class' package and all sub-packages.
|
TestSuiteBuilder! |
includePackages(vararg packageNames: String!)
Include all tests that satisfy the requirements in the given packages and all sub-packages, unless otherwise specified.
|
TestSuiteBuilder! |
named(newSuiteName: String!)
Override the default name for the suite being built. This should generally be called if you call addRequirements(com.android.internal.util.Predicate[]) to make it clear which tests will be included. The name you specify is automatically prefixed with the package containing the tests to be run. If more than one package is specified, the first is used.
|
|
Public constructors
UnitTestSuiteBuilder
UnitTestSuiteBuilder(clazz: Class<Any!>!)
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-06-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-18 UTC."],[],[]]