Skip to content

mustafaberkaymutlu/sample-junit5-tests-on-android

Repository files navigation

JUnit5 Samples on Android

A repository to demonstrate JUnit5 parameterized tests on Android.

The complementary article is here.

Read the JUnit5 documentation here.

Check out mannodermaus's android-junit5 Gradle plugin.

  • Our production code FactorialCalculator is here
  • Sample parameterised test with CSV sources is here.
  • Sample parameterised test with method sources (with Java 6 compilation target) is here.
  • Sample parameterised test with method sources (with Java 8 compilation target) is here.
  • Sample nested test is here.

Formatting

ktlint is used to keep the proper formatting.

Run this to install ktlint using brew: brew install ktlint

Then in the Android Studio run the following command:

ktlint --apply-to-idea-project --android

Releases

No releases published

Packages

No packages published

Languages