I'm new to testing world and even more to Android testing world. While doing research on Robolectric that aids with tests on android one thing confuses me the most. Sometimes on the web I see people using testCompile
keyword in dependencies of the gradle build script when referencing Robolectric while others use androidTestCompile
. Certainly both can't be valid?
Can somebody explain the difference between the both and which of these should be the one used when using Robolectric?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…