I'm trying to create Robolectric tests for an android project (heck, i'd be happy to even make them unit tests)
I have the folder directory as:
MyApp
- app
- src
- main
- java
- com.myapp
HelloWorld
- test
- java
- com
- myapp
HelloWorldTest.java
The problem is that HelloWorldTest.java
can't be run because it's not being recognized as source. how do i set it up so that i can run this class as a test?????
if i try to do CMD + SHIFT + T
(shortcut for creating tests), it prompts to create the tests under the same directory as my source file and i do NOT want that
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…