java - Sharing Android tests between two projects -


I am writing automated unit tests for an Android application, and I'm in a very awkward situation.

The app is carefully designed to target API8 - API 9 without the need for many releases Part of the tests, however, I need to test a specific class without any internet access or mobile data. I have found a very hacking method to do this, but the solution comes in two parts: one for API 10 and above, and one for API 8 for which permissions are not allowed to target> = API 10

What I want to do is to create two test projects, which target API 8 and which targets everything that I want to save is copying the test files which Work in all editions. As far as I can tell, there is only the manifest and the utility class which needs to be separated.

Is there any way to store tests in a central location, and they have been included and have attended both tests?

Create tests to share on one project as usual, on Eclipse.

When you are happy with the results of the test, then go to the second folder and create a new folder inside:

  • New button on the project> New> Folder
  • Press the "Browse ..." button and browse to the folder containing the previous tests
Press the "Advanced Button" "Link to Alternate Place" (Linked Folder)
  • Finally, right-click on the linked folder and choose:

    • Create path> as a source folder I

  • Comments

    Popular posts from this blog

    import - Python ImportError: No module named wmi -

    Editing Python Class in Shell and SQLAlchemy -

    c# - MySQL Parameterized Select Query joining tables issue -