Package-level declarations

Test DSL scope (E2ETestScope), configuration (E2ETestConfig), lifecycle hooks (E2ETestLifecycle, BeforeAll, AfterAll), and annotation-based test infrastructure.

Types

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class AfterAll

Marks a function to be executed once after all test scenarios in the test suite complete.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class BeforeAll

Marks a function to be executed once before any test scenario in the test suite starts.

Link copied to clipboard
data class E2ETestConfig(val defaultWaitTimeoutMs: Long, val commandDelayMs: Long = 0, val failureScreenshotPath: String = "build/parikshan/failures/failure-", val captureScreenshotOnFailure: Boolean = true)

Configuration options for an end-to-end test execution.

Link copied to clipboard

Interface providing per-test scenario lifecycle hooks for a test class.

Link copied to clipboard
class E2ETestScope(driver: TestDriver, config: E2ETestConfig)

Primary execution scope for a Parikshan end-to-end test scenario.

Link copied to clipboard
enum Target : Enum<Target>

Functions

Link copied to clipboard

Returns true if the current test execution target is an Android device or emulator.

Link copied to clipboard

Returns true if the current test execution target is JVM Desktop.

Link copied to clipboard

Returns true if the current test execution target is an iOS simulator or device.

Link copied to clipboard

Returns true if the current test execution target is Web (WasmJs).