RoboelectricSettings

Settings for a Roboelectric test suite.

Properties

Link copied to clipboard
var application: KClass<out Application>?

The Application class to use in the test, this takes precedence over any application specified in the AndroidManifest.xml.

Link copied to clipboard

The lifetime of an application (the default is per test).

Link copied to clipboard
var conscryptMode: ConscryptMode.Mode?

The mode of choosing a security provider (can be used to prefer Bouncy Castle over the default Conscrypt).

Link copied to clipboard

The default font scale. In U+, users will have a slider to determine font scale. In all previous APIs, font scales are either small (0.85f), normal (1.0f), large (1.15f) or huge (1.3f)

Link copied to clipboard

A set of instrumented packages to enable, in addition to those that are already present.

Link copied to clipboard

Classes specified to be portable between Roboelectric and the outside JVM.

Link copied to clipboard

Packages whose declarations are specified to be portable between Roboelectric and the outside JVM.

Link copied to clipboard

Qualifiers specifying device configuration and resource resolution, such as "fr-normal-port-hdpi".

Link copied to clipboard
var sdk: Int?

The Android SDK level to emulate. This value will also be set as Build.VERSION.SDK_INT.

Link copied to clipboard

A set of shadow classes to enable, in addition to those that are already present.