Issue
I am writing unit tests for my current android application. And I am using the app's version code in some APIs. This version code is defined in build.gradle file.(A gradle variable). Now is there a way to access this information in the test code? I am using JUNIT and Mockito for my testing. Or is it entirely wrong to use gradle variables in testing?
Solution
Is BuildConfig.VERSION_CODE not working for you?
Answered By - Samir Spahic
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.