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 250694 - Support for specifying test class suffixes for Go to Test/Tested Class
Summary: Support for specifying test class suffixes for Go to Test/Tested Class
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 8.0.2
Hardware: PC Linux
: P3 normal with 2 votes (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-25 14:37 UTC by dukethrash
Modified: 2015-02-25 14:45 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 dukethrash 2015-02-25 14:37:30 UTC
User story:

As a Java developer
I want Netbeans to support test class suffixes for Navigate-->Go to Test/Tested Class
So that I can follow a different suffix convention other than "Test" and "IT"


Background:

Currently if you hit CTRL+SHIFT+T or Navigate-->Go to Test/Tested Class it only supports a test class that ends in IT or "Test." We follow the SmallTest, MediumTest, LargeTest convention as written by Google http://googletesting.blogspot.com/2010/12/test-sizes.html.


Scenarios:

  Adding a test class suffix

     Given I am adding a test class suffix
     When I add "LargeTest"
     Then I should see "LargeTest" in the list of test class suffixes

  Deleting a test class suffix

     Given the following test class suffixes:
            LargeTest
            Test 
     When I delete "LargeTest"
     Then I should see the following test class suffixes:
            Test      

  Navigating to a test class with many test class suffixes from a Java source file:

     Given the following test class suffixes:
            SmallTest
            MediumTest 
            LargeTest
            Test
     And the following Java test classes:
            /src/test/java/com/mycompany/SomeFileSmallTest.java
            /src/test/java/com/mycompany/SomeFileMediumTest.java
            /src/test/java/com/mycompany/SomeFileLargeTest.java
            /src/test/java/com/mycompany/SomeFileTest.java
     And editing a /src/main/java/com/mycompany/SomeFile.java
     When I Navigate-->Go to Test/Tested Class or hit keyboard CTRL+SHIFT+T
     Then I should see the following test classes pop up to be selected:
            SomeFileSmallTest
            SomeFileMediumTest
            SomeFileLargeTest
            SomeFileTest
Comment 1 ecimionatto 2015-02-25 14:45:02 UTC
best requirements ever!