Uploaded image for project: 'Commons SCXML'
  1. Commons SCXML
  2. SCXML-91

Test case bugs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.9
    • 0.10, 2.0
    • None

    Description

      Test cases are difficult to debug if they fail.

      This is because many test cases catch Exception, and don't report it fully.
      Test cases should only catch a (specific) Exception if the test is expected to generate one, and should otherwise throw the Exception.

      Several test cases report problems to System.out or System.err and carry on processing.
      For example, serialisation errors are largely ignored, and SCXMLTestHelper#testExecutorSerializability() ignores IO errors.

      Testing generates a lot of output, some of which appears to be errors (e.g. stack traces) yet the test passes.
      Ideally tests should suppress output stack traces which are expected during testing.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: