Community
Participate
Working Groups
Currently, the SynchronizeViewTest uses the egit repo as test repository. This adds a lot of waiting time for the test to finish due to cloning and synchronizing (test takes 2m 40secs to finish on my machine). We should really use a smaller and more deterministic repository for these tests.
We should use the same local repository which is used for the clone test. In commit e29cc2a4a20e94eda3ea902da3e1894846860813 Matthias introduced a repo which "is now generated, has a much smaller size and its daemon is run as part of the test harness to speedup the UI tests and make them independent from external resources."
Take a look at GitCloneWizardTest and SampleTestRepository how I did that for the clone tests. Since changing them to use locally generated repository we never had any problems with these tests anymore. Couldn't you instead of cloning generate a test repo programmatically ? Have a look at GitRepositoriesViewTestBase and its abstract base class LocalRepositoryTestCase
I've rewrite SynchronizeViewTest, now it is based on LocalRepositoryTestCase, here is patch for this: http://egit.eclipse.org/r/#change,1677
merged as 57b2c2f4d67f307ff32af541ca7a5ca1b4b97e22