JDK-8044517 : Run & debug single Nashorn test
  • Type: Bug
  • Component: core-libs
  • Sub-Component: jdk.nashorn
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2014-06-02
  • Updated: 2014-08-18
  • Resolved: 2014-06-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
8u20Fixed 9 b19Fixed
While working with Nashorn sources I found it beneficial to execute a single test rather than all of them. With attached patch I can:

$ jdk8/nashorn/make$ ant test -

The patch changes the way list of test classes is composed. If the test.class property is specified, it is used, rather than including all the tests in the repository.

The patch also includes changes to nashorn/make/nbproject/*xml files to make sure the Ant task can be used from the NetBeans IDE. After opening the nashorn/make project, one can choose a test file, right click and either "Run Test" or "Debug Test".

sent fix for review.