Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8044517

Run & debug single Nashorn test

    XMLWordPrintable

Details

    • b19
    • generic
    • generic

    Backports

      Description

        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 -
        Dtest.class=jdk/nashorn/api/scripting/ScopeTest.class

        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".

        Attachments

          Issue Links

            Activity

              People

                sundar Sundararajan Athijegannathan
                jtulach Jaroslav Tulach (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: