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 256412 - Vendor "Run Focused Test Method" unavailable
Summary: Vendor "Run Focused Test Method" unavailable
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: PHPUnit (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-06 14:00 UTC by geoB
Modified: 2016-05-27 06:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Message log (49.74 KB, application/octet-stream)
2015-11-06 14:00 UTC, geoB
Details

Note You need to log in before you can comment on or make changes to this bug.
Description geoB 2015-11-06 14:00:24 UTC
Created attachment 157186 [details]
Message log

In a Symfony project I am able to run focused tests in my source code (e.g., ..\src\Truckee\MatchBundle\Tests) but not in a vendor's Tests directory.  The options when right-clicking in the test method are gray.  Yet using the menu Run, Test Project will run all the tests in the vendor's Test directory.

This behavior is independent of git connection.  The vendor directory is not listed in the project's ignore directories listing.
Comment 1 Tomas Mysik 2015-11-09 08:17:40 UTC
Will look at it soon. Thanks for reporting.
Comment 2 Tomas Mysik 2015-11-30 07:22:45 UTC
Maybe this could be a workaround - disable Composer plugin in Tools > Plugins (if you don't use it, of course). Could you please try it?

Thanks.
Comment 3 geoB 2015-11-30 15:34:21 UTC
>...disable Composer...

Thanks for the update.  As a workaround this would do.  Disabling Composer, however, also disables the right-click menu on a project in the Projects window.  Included in that menu is access to Symfony commands.  As a Symfony developer I rely more on the Symfony commands than on testing a vendor's project.
Comment 4 geoB 2015-11-30 15:39:00 UTC
(In reply to geoB from comment #3)
> >...disable Composer...
> 
> Thanks for the update.  As a workaround this would do.  Disabling Composer,
> however, also disables the right-click menu on a project in the Projects
> window.  Included in that menu is access to Symfony commands.  As a Symfony
> developer I rely more on the Symfony commands than on testing a vendor's
> project.

Just noticed, though, that in a restarted session after deactivating Composer, re-activating the Composer plugin returns access to the context menu AND allows Run Focused Test Method.
Comment 5 Tomas Mysik 2015-12-01 09:43:09 UTC
(In reply to geoB from comment #3)
> Disabling Composer,
> however, also disables the right-click menu on a project in the Projects
> window.  Included in that menu is access to Symfony commands.

This is weird, will verify it.
Comment 6 Tomas Mysik 2015-12-01 09:43:57 UTC
(In reply to geoB from comment #4)
> re-activating the Composer plugin returns access to the context
> menu AND allows Run Focused Test Method.

Yes, but till you restart your IDE. Then it will stop working again IMO.
Comment 7 geoB 2015-12-01 13:12:49 UTC
(In reply to Tomas Mysik from comment #6)
> (In reply to geoB from comment #4)
> > re-activating the Composer plugin returns access to the context
> > menu AND allows Run Focused Test Method.
> 
> Yes, but till you restart your IDE. Then it will stop working again IMO.

True, but it does say that they can play nicely together.
Comment 8 Tomas Mysik 2016-05-26 10:09:05 UTC
This has been fixed as part of issue #256585. Feel free to verify it.

Thanks.

Product Version: NetBeans IDE Dev (Build 20160526-870cac7ce632)
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 9 geoB 2016-05-26 14:53:34 UTC
Confirmed.  Thanks for the update notice.
Comment 10 Tomas Mysik 2016-05-27 06:12:22 UTC
Thanks for verification!