Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2878

cli test expect timeouts need to display the captured text that doesn't meet the expectation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.6.0
    • 3.7.0
    • Infrastructure
    • None

    Description

      When a CLI test fails due to an expect timeout such as:

       

      [error] Test org.apache.daffodil.cli.cliTest.TestCLIParsing.test_Layer_Execution_Error failed: net.sf.expectit.ExpectIOException: Expect operation fails (timeout: -1 ms) for matcher: contains('Unexpected exception in layer transformer 'buggy''), took 3.414 sec
      [error]     at net.sf.expectit.ExpectImpl.expectIn(ExpectImpl.java:106)
      

      It could be good if the actual output text was displayed so that one can see why the expectation was not met.

      Without that, it's actually a bit tedious to reproduce the test in order to see the actual output. You have to stage daffodil, mine the command line with all args from the CLI test, and then issue the command line to daffodil. 

      It's not so easy to debug into the expect utility to find the text at issue. 

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            mbeckerle Mike Beckerle
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: