Android Eclipse test projects cannot be used with a project that is built in the Android build tree

A Java Java project hosted in a git repository and embedded in the Android tree in /packages/appsmust have project files located in the root directory of the git repository.

This is problematic for creating an additional test project, which ideally should be included in the same git repository, so commits are atomic for code and tests. Eclipse is very upset if you include the Test project as a subdirectory.

Is there a suitable approach to solve this problem, besides creating a second repository?

+3
source share
2 answers

git, , git. , , , ,

/packages/apps/<product-name> -

/packages/apps/<product-name>/app-name -

/packages/apps/<product-name>/app-name-test -

0

git eclipse. , ~/work/repo, 2 . 2 , . Eclipse , . "cd ~/work/repo; git add.; git commit;", .

,

0

Source: https://habr.com/ru/post/1738389/


All Articles