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.
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