Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4087074
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:48:33+00:00 2026-05-20T18:48:33+00:00

How do I create an Android Test project in Eclipse in the target project’s

  • 0

How do I create an Android Test project in Eclipse in the target project’s /test directory?

Note: I’m just doing my own Q+A for people according to the Stackoverflow FAQ on answering your own question.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T18:48:34+00:00Added an answer on May 20, 2026 at 6:48 pm

    I am using Helios with the latest current version of Android (10.0.1)

    The Android Testing fundamentals recommends you
    place the tests in the same project folder as your src folder. Some people have recommended that you create a new test project in its own folder so it doesn’t get packaged into the apk.
    I looked inside my apk and I don’t think the test stuff was included (but I could be wrong). I like having it in the same directory as its more convenient for revision control – you don’t need to sync two projects each time.

    Assume we want to create a test suite for the MyAndroidApp project

    Goto File.. New.. Other.. Android…Android Test Project

    • Set “Test Project Name” to MyAndroidAppTest
    • For Test Target, choose “An existing Android project”.. Use the Browse button to select MyAndroidApp
    • Unselect “Use default location”. This changes the location to be inside the MyAndroidApp project under the tests directory
    • Click Finish

    When it is being created, if you get a An internal error occurred during: "Refreshing workspace". error (or other errors) just ignore it. Click OK.

    -Clean the MyAndroidApp project

    Even though the project is in the <workspace path>/MyAndroidApp/tests directory it will appear as a normal Eclipse project in the package explorer.
    Clean the MyAndroidAppTest project.
    This worked for me.

    EDIT

    If you upload to SVN in Eclipse (by syncing the MyAndroidApp project, not the MyAndroidAppTest project) you need to do a little more (I’ve just done it now).
    So when you update your other working copy it will pull down the /tests directory.
    The MyAndroidAppTest project does not automatically show up in the Package Explorer.
    So you need to go to File.. Import…Existing Projects into Workspace….
    Then select the root directory by browsing to your <workspace path>/MyAndroidApp/tests directory and click Finish.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create an android project using eclipse IDE,its created successfully but
I did the following: Create a working Android project (not a library or test
I am writing some test Android apps using Eclipse. I created my 1st project,
I am writing some test Android apps using Eclipse. I created my 1st project,
I am using eclipse and I created a test android project and the package
I created an Android test project using instrumentation and it works find with eclipse
My question is: How do I create an Android stand-alone test project for an
I create an Android project for build my custom widget, and I want to
I am making an sqlight using eclipse outside the android project what should I
I'm working on an Android project. Something happened with my Eclipse project and I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.