Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Introduction

The Android project utilizes https://junit.org/junit5/ for performing unit testing and test automation. JUnit5 was chosen for its functionality and its clarity.

Requirements

  • Android Studio

  • openjdk 11.0.11 2021-04-20 or newer

Related Jira Issues

FNSDKEXT-93 - Getting issue details... STATUS

FNSDKEXT-122 - Getting issue details... STATUS

Usage

tl;dr https://www.lordcodes.com/articles/testing-on-android-using-junit-5

Basic usage of the existing testing project requires no special setup, as it was created as a JUnit5 test project in the first place; review the JUnit5 documentation for detail-in-depth.

If a new testing project needs to be created, here is a quick-and-dirty rundown:

  • Add the following block of code to the project build.gradle file, before the plugins { ... } block

    • buildscript {
          dependencies {
              classpath("de.mannodermaus.gradle.plugins:android-junit5:1.8.2.0")
          }
      }
  • No labels