Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-7409

Add option to send JUnit tests standard output to console

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 6.15.1
    • Component/s: None
    • Labels:
      None
    • Environment:
      Apache Ant
    • Sprint:
      EJBCA Sprint 21 Team Bob

      Description

      When performing system testing and debugging, it can sometimes be immensely helpful to follow debug output of the test without an IDE present and before the tests fails in such a way that the console output is never written to a file.

      When running tests with the Java option -Dtest.showoutput=true, the console output from the test should be shown. The property default to false.

      This would imply that any junit task should be controllable by this variable:

          <junit printsummary="yes" haltonfailure="no" showoutput="${test.showoutput}">
              ...
      

      To make the feature more visible, it should be shown in the same help-text that is shown when the target test:runone is run without the Java option -Dtest.runone=...Test.

      (The Ant target test:runone is also the main expected use-case for this, but other may exist in container environments where log-files are ignored.)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                johan Johan Eklund
                Reporter:
                johan Johan Eklund
                Verified by:
                Tomas Gustavsson
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: