tree: 2b3351e5a1cb6b7a2c990023efef7e27aa711a02 [path history] [tgz]
  1. src/
  2. build.gradle
  3. README.md
webkit/integration-tests/instrumentation/README.md

Webkit library instrumentation tests

This project contains the instrumentation tests for the webkit library.

The tests are located in a separate module to allow the use of multiple product flavors to build and run the tests against different targetSdk versions.

This is necessary in order to test dark mode functionality, which changes depending on targetSdk between 32 and 33.

Source sets

Tests that do not depend on a particular targetSdk version should be added to the default androidTest source set.

Tests that require a particular targetSdk version should be added to the appropriate source set.

Running tests from Android Studio

Tests can be run as normal in Android Studio. You must use the “Build Variants” menu to select the product flavor to run. Use one of

  • targetSdkLatestDebug
  • targetSdk32Debug

You must select the corresponding build variant in order to run tests located outside the shared source set.