Run/Debug focused test method

Hi all, today it will be just very short blog post about a useful feature that will be present in NetBeans 7.4.

Everyone of us has a plenty of unit tests, right? And currently, there is no easy way to run (or debug) just one single test (one single method) - but this will change in NetBeans 7.4. The only thing one has to do is to right click in a test method which shows this context menu:

Run single test method

If you invoke the selected action, expected test result will appear:

That's all for today, as always, please test it and report all the issues or enhancements you find in NetBeans Bugzilla (component php, subcomponent PHPUnit).

Comments:

A very good idea!
But: is the wording a good choice?

The word "Focused" is not "simple English" and non-English users may have difficulties understanding what it means.
Especially since "focused" is a programming term, not everyone will know that the "focused method" is the one where your cursor is.

How about "Run Test Method At Your Cursor" instead?
Or shorter: "Run This Test Method"?

Anyway, I would suggest to avoid the term "focused" here.

Posted by Tom on April 26, 2013 at 11:57 AM CEST #

@Tom: Please, submit an issue to NetBeans Bugzilla (link is in the blog post).

Thanks.

Posted by Tomas Mysik on April 26, 2013 at 12:27 PM CEST #

Nice improvement :D

Posted by Chris on May 03, 2013 at 08:44 PM CEST #

@Tomas @Tom is right, "Run this test method" is much easy to understand than "Run Focused ...". Until i saw @Tom comment i thought its something like "Run specific test cases"

Posted by kirugan on May 06, 2013 at 10:37 PM CEST #

@kirugan: I can only repeat myself - please, submit an issue (we use action from the IDE infrastructure and the label comes from it, not from PHP support).

Thanks.

Posted by Tomas Mysik on May 07, 2013 at 08:56 AM CEST #

Does that command ignore any @depends annotations? IMHO, it should ignore them, if it doesn't already.

Posted by boen_robot on May 13, 2013 at 06:11 PM CEST #

@boen_robot - Of course, if that method takes the return value from the method it depends upon, the test will likely fail for non-obvious reasons.

Posted by David Harkness on June 25, 2013 at 02:06 AM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

This blogs is written by NetBeans developers who contribute to the PHP support mainly.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today