You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
depot_tools/tests
maruel@chromium.org 17cdf76123 Make FakeRepos more reusable.
Make it work with 'coverage'.
Make FakeRepos initialization lazy. Only generate the repository when needed. It's in part intended for gclient_scm_tests.py but I left it out of this review.

To use:
  easy_install coverage
  ./tests/gclient_smoke.py -c
  coverage report

Current coverage with gclient_smoke:

Name                        Stmts   Exec  Cover
-----------------------------------------------
gclient                       557    416    74%
gclient_scm                   496    270    54%
gclient_utils                 195    117    60%
scm                           439    180    41%
(ignoring irrelevant files)

It's quite good in fact, 74% of gclient.py being executed with the smoke test.

Review URL: http://codereview.chromium.org/2352002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@48501 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
..
__init__.py Refactor the unit tests to remove a lot of duplicate code. 17 years ago
fake_repos.py Make FakeRepos more reusable. 16 years ago
gcl_unittest.py Massive overhaul for gcl help 16 years ago
gclient_scm_test.py Make gclient.git.revert reset to DEPS revision 16 years ago
gclient_smoketest.py Make FakeRepos more reusable. 16 years ago
gclient_utils_test.py Fix broken unit test by r44612. 16 years ago
presubmit_unittest.py When the tree is closed, it's closed. 16 years ago
scm_unittest.py Fix issue with svn copy/move directories. 16 years ago
super_mox.py Fix licensing headers and move most third party code to third_party/ 16 years ago
trychange_unittest.py Makes trychange.py search harder for codereview.settings in a gclient checkout. 16 years ago
watchlists_unittest.py Cleanup the unit tests by mocking more system functions. 16 years ago