Issue
So I took over an Android project which doesn't have nor androidTest neither Test folders in it.
What is the best way to create them? Is there a simple way to generate them?
Thanks a lot,
Edit:
So I created two folders and tests won't launch. I have exact same structure as the ones that is created by default when creating a new project. Gradle plugins are ok.
compile 'com.android.support.test:runner:0.5'
compile 'com.android.support.test:rules:0.5'
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
testCompile 'junit:junit:4.12'
When I launch a newly created project, we see "test passed" When I launch mine, nothing happens
Solution
Is there a simple way to generate them?
They are simply directories. You create them the same way that you would create any other directories on your developer machine (e.g., mkdir
from the command line).
Answered By - CommonsWare
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.