Easyread
Published in

Easyread

SourceSet SharedTest Not Working in Android Studio Chipmunk? Use TestFixtures as Solution

When we create a test code, we often find duplicate code for the local test (test) and instrumentation test (androidTest). Alternatively, we can create a common test folder where we can store files, classes, and functions which will be available for local and instrumentation tests. Usually, we call it sharedTest pattern.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store