Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-3959

TestNG script runner masks root cause of exception

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.6.4, 1.7.0
    • 1.6.8, 1.7.1, 1.8-beta-1
    • None
    • None

    Description

      The realRunTestNgTest() method of class org.codehaus.groovy.vmplugin.v5.TestNgUtils contains this code:

              } catch (ClassNotFoundException e) {
                  throw new GroovyRuntimeException("Error running TestNG test.");
              }
      

      This is very unhelpful because it hides the original exception e. It should be passed as root cause to the GroovyRuntimeException constructor.

      Attachments

        Activity

          People

            roshandawrani Roshan Dawrani
            marcusb Marcus Better
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: