Bug 193089 - Launch config only returns 20 results when searching for test classes to run in current workspace
Summary: Launch config only returns 20 results when searching for test classes to run ...
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.3 RC4   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2007-06-18 06:48 EDT by David Corley CLA
Modified: 2007-06-18 10:17 EDT (History)
1 user (show)

See Also:


Attachments
search box showing 20 classes (271.16 KB, image/jpeg)
2007-06-18 08:59 EDT, David Corley CLA
no flags Details
.log file (31.49 KB, text/plain)
2007-06-18 09:46 EDT, David Corley CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Corley CLA 2007-06-18 06:48:40 EDT
When I use the "search" button in the run/debug configuration manager to search for a test class to run in the current project, only 20 results are returned, even though there are hundreds of tests in my current workspace. The same 20 results are returned every time.
The steps for reproduction are simple.
1. Set up your eclipse project with source and tests.
2. Click the Run or Debug buttons to open the configuration manager.
3. Create a new Junit debug/run configuration, and use the "Run a single test" option.
4. Select the current project and click the "search" button to search for a test class.
5. Search returns only 20 results when there should be many more. results seem to be selected from random packages.
Comment 1 Frederic Fusier CLA 2007-06-18 07:13:25 EDT
I cannot reproduce the behavior you described in your scenario. Using our test projects, I get all the JUnit test classes in the 'Test Selection' dialog when I click on the 'Search' button.

Please provide more information to help us to reproduce:
1) The exact build ID you are using
2) What are the 20 classes you find in the 'Test Selection' dialog?
3) Can you reproduce this issue importing your project in a brand new workspace?
4) Anything in the .log file?

Move to JDT/UI who owns this part of the launch config dialog...
Comment 2 Martin Aeschlimann CLA 2007-06-18 08:17:54 EDT
What test runner is configured on the launch configuration tab?
Comment 3 David Corley CLA 2007-06-18 08:58:27 EDT
I'm using the Junit3 test-runner, and all of the tests are written towards Junit 3.
The build id is: I20070608-1718
The 20 classes I find are shown in the attached jpg. (Coming after this update

***When I import the project into a new workspace, the search works ok.




Comment 4 David Corley CLA 2007-06-18 08:59:41 EDT
Created attachment 71602 [details]
search box showing 20 classes
Comment 5 Martin Aeschlimann CLA 2007-06-18 09:20:09 EDT
Looks like problem with the search index. Anything in the .log file?
Comment 6 Frederic Fusier CLA 2007-06-18 09:26:18 EDT
If this is an Search Index issue then you shouldn't be able to open the missing JUnit test classes using the Open Type dialog. Can you confirm this point?
Comment 7 David Corley CLA 2007-06-18 09:31:04 EDT
Where can I find the log file?
Comment 8 Frederic Fusier CLA 2007-06-18 09:38:30 EDT
This is the .log file in the <workspace directory>\.metadata sub-directory.

Another point: looking at your snapshot, I saw that your source folders are linked to external folders. Are you sure that you've performed a refresh on your current workspace project to get the folders contents in sync' with last changes?
Comment 9 David Corley CLA 2007-06-18 09:46:24 EDT
Created attachment 71606 [details]
.log file
Comment 10 David Corley CLA 2007-06-18 09:47:26 EDT
the search seems to work fine since I restarted eclipse, but I said I'd include the .log file in case you spot anything that may have caused it.
Comment 11 Frederic Fusier CLA 2007-06-18 10:17:36 EDT
If stop/restart eclipse fixes the problem, then it looks like a refresh issue. Next time you get this problem, just try to refresh the project.
=> Closing as INVALID. Please reopen if the refresh action would fail to fix this problem when it occurred again...

Note that linked source folders are not recommended for eclipse projects as all changes occurring in this folders are not automatically reported in your workspace. If you really want/need to keep this architecture, then I strongly recommend to activate automatic refresh option of your workspace (Preferences -> General -> Workspace -> Refresh Automatically) to avoid this kind of troubles in the future...