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

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?

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

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.