Android Unit Test step runs only JUnit 4 tests without Jupiter JUnit 5 tests

android
#1

We run our Android project on Bitrise. It consists of tests with JUnit 4 and also JUnit 5 Jupiter.
Unit tests are runned using Android Unit Test step.
One day we saw that CI passed when it shouldn’t. After checks, we saw that Test reports do not consist of any of JUnit 5 test reports.

All tests work correctly when from started the Android Studio.

Our dependency for JUnit:
testImplementation ‘org.junit.jupiter:junit-jupiter-api:5.1.0’
testImplementation ‘org.junit.jupiter:junit-jupiter-engine:5.1.0’
testImplementation ‘junit:junit:4.12’

CI is running on default Android & Docker, on Ubuntu 16.04 with Java: javac 1.8.0_252

Any ideas? Any other information needed?

0 Likes

#2

Are tests performed when invoked locally (using the same command as on bitrise.io)?

0 Likes