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 224787 - Run current test
Summary: Run current test
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: PHPUnit (show other bugs)
Version: 7.2.1
Hardware: All All
: P2 normal with 1 vote (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-12 17:16 UTC by BullfrogBlues
Modified: 2013-07-25 16:09 UTC (History)
0 users

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 BullfrogBlues 2013-01-12 17:16:33 UTC
Would be nice to run only a current test, a single test, where you cursor is for example. 

Example:

1. class TestClass extends PHPUnit_Framework_TestCase {
2.
3.    public function testOne() {}
4.    public function testTwo() {}
5.    public function testThree() {}
6.
7. }

Where your cursor is on line 4 a keystroke will run only testTwo(). 

I couldn't find which shortcut would be best for this. Ctrl+Shift+F6 would have been perfect but that's already in use for Debug Test.
Comment 1 Tomas Mysik 2013-01-14 06:04:28 UTC
Yes, this was in our plan for NB 7.3 but there was no time for it, sorry. Will try to implement it for the next release.

Thanks for reporting.
Comment 2 Tomas Mysik 2013-05-13 08:00:49 UTC
This is done for NB 7.4.

Thanks.
Comment 3 mmolda 2013-07-25 16:09:39 UTC
Verified. Thanks

Product Version: NetBeans IDE Dev (Build 201307242300)
Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b15
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)