This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 257223 - Test file appears twice in Go to file dialog
Summary: Test file appears twice in Go to file dialog
Status: REOPENED
Alias: None
Product: utilities
Classification: Unclassified
Component: Jump To (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-19 13:00 UTC by hlupec
Modified: 2016-07-20 07:51 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
One file is listed twice (130.58 KB, image/png)
2015-12-19 13:00 UTC, hlupec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hlupec 2015-12-19 13:00:28 UTC
Created attachment 157856 [details]
One file is listed twice

After configuring unit tests in PHP projects (add test folder to project, then open project properties and add test folder and select PHPUnit -> save project properties) and invoking "Go to file" dialog (alt + shift + o) there are two same test files in the list, for example:
I search "ArticlesService" and I have files ArticlesService.php and ArticlesServiceTest.php in my project ... ArticlesServiceTest.php is appeared twice. See printscreen.

When I close project (after setting up unit test folder) and open again, bug is no longer there.
Comment 1 Tomas Mysik 2016-06-03 05:43:53 UTC
Could you please try the dev version of NetBeans [1]? I cannot reproduce this issue in it. Please let us know then, thanks. If the problem still exists, please reopen this issue and attach a sample project.

Thanks.
[1] http://bits.netbeans.org/download/trunk/nightly/latest/

Product Version: NetBeans IDE Dev (Build 20160602-eb3cfce69024)
Java: 1.8.0_91; Java HotSpot(TM) 64-Bit Server VM 25.91-b14
Runtime: Java(TM) SE Runtime Environment 1.8.0_91-b14
System: Linux version 4.2.0-36-generic running on amd64; UTF-8; cs_CZ (nb)
Comment 2 hlupec 2016-07-15 12:55:57 UTC
It is important to have a class file in tests folder BEFORE you setup unit testing in project properties. 

I just tried it on dev build:
Product Version: NetBeans IDE Dev (Build 201607150002)
Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
System: Linux version 4.4.0-22-generic running on amd64; UTF-8; cs_CZ (nb)
Comment 3 Tomas Mysik 2016-07-18 11:02:01 UTC
Will try to look at it, thanks for the details Z.
Comment 4 Tomas Mysik 2016-07-20 07:51:27 UTC
PHP project fires FilteringPathResourceImplementation.PROP_INCLUDES event once Test Files are set so I think that the problem could be in GoToFile functionality?

Note: To reproduce, Test Files must be underneath Source Files (in other words, Source Files is parent of Test Files).

Please evaluate, thanks.