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 180250 - Ctrl+F6 doesn't run test from test file
Summary: Ctrl+F6 doesn't run test from test file
Status: REOPENED
Alias: None
Product: php
Classification: Unclassified
Component: PHPUnit (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal with 2 votes (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-03 22:47 UTC by tprochazka
Modified: 2012-02-09 09:55 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tprochazka 2010-02-03 22:47:20 UTC
In Java is possible use Ctrl+F6 for run test also when you are in the test file. I only simply hit Ctrl+F6. This doesn't work in PHP project. Here I must use Ctrl+F6 in tested class and normall run Shift+F6 in test. I think that will be the best use the same behavior like in Java project also for PHP project, because during writing test programmer often switch during test and tested class...

Maybe this is DEFECT instead of ENHANCEMENT
Comment 1 Tomas Mysik 2010-02-04 01:51:38 UTC
(In reply to comment #0)
> In Java is possible use Ctrl+F6 for run test also when you are in the test
> file.

Just to be clear - what is "test file"? Do you mean "source file" (or tested class)? I guess so but please confirm.

Thanks.
Comment 2 tprochazka 2010-04-23 09:06:44 UTC
Sorry for my terminology.
With 'test file' I mean 'junit class'/'testing code' which test 'tested class'
But this is not important. Ctrl+F6 should be work everywhere to run test.
Comment 3 tprochazka 2010-04-23 09:07:14 UTC
Some way like in Java
Comment 4 Filip Zamboj 2010-09-15 12:36:52 UTC
batch reassigning
Comment 5 BullfrogBlues 2012-02-09 09:53:46 UTC
Still present in 7.1. (PHP). 

I agree, this is inconsistent behaviour.

Reproduce:

You have a php file & a associated phpunit test file

Open the php file, you can run the unit test -> <Ctrl+F6>.

Now switch to the unit test e.g. <Ctrl+Shift+T>

Run the unit test -> <Shift+F6> 

Notice how the shortcuts are different? <Ctrl+F6> & <Shift+F6>

They should be the same, one or the other. 

I vote <Shift+F6>. Reasoning: I use my left pinky on the shift and right index finger on the F6, my pink is more confortable on the shift key and my right index finger is closer to the F6 key.
Comment 6 Tomas Mysik 2012-02-09 09:55:56 UTC
Will try to look at it.