jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven Surefire
  • SUREFIRE-138

Add option to redirect stdout from tests to a file

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.5.3 (2.1.3 plugin), 2.0 (2.2 plugin)
  • Fix Version/s: 2.3
  • Component/s: None
  • Labels:
    None

Description

Instead of

-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.apache.maven.wagon.providers.webdav.WebDavWagonTest
17:59:47.546 EVENT Stopping Acceptor ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=10007]
17:59:47.546 EVENT Stopped SocketListener on 0.0.0.0:10007
17:59:47.546 EVENT Stopped ServletHttpContext[/dav]
17:59:47.546 EVENT Stopped org.mortbay.jetty.Server@b307f0
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.406 sec

show just

-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.apache.maven.wagon.providers.webdav.WebDavWagonTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.406 sec

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    MSUREFIRE-136-maven-surefire-plugin.patch
    12/Jun/06 10:20 PM
    1 kB
    Henry S. Isidro
  2. Text File
    MSUREFIRE-136-surefire-booter.patch
    12/Jun/06 10:20 PM
    8 kB
    Henry S. Isidro

Issue Links

is duplicated by

Improvement - An improvement or enhancement to an existing feature or task. SUREFIRE-182 console output of tests should be catched in text files like in Maven 1

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.
relates to

Bug - A problem which impairs or prevents the functions of the product. SUREFIRE-315 The redirectTestOutputToFile does not handle output before tests, nor does it handle capturing output on both streams

  • Critical - Crashes, loss of data, severe memory leak.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Henry S. Isidro added a comment - 12/Jun/06 9:57 PM

I've patched surefire-booter as well as maven-surefire-plugin to exhibit this behavior. The plugin now accepts a boolean parameter, consoleOutputToFile, that if set to true, all stdouot from tests are placed in a file. The file is console_output.txt and is placed in ${project.build.directory}/surefire-reports.

Show
Henry S. Isidro added a comment - 12/Jun/06 9:57 PM I've patched surefire-booter as well as maven-surefire-plugin to exhibit this behavior. The plugin now accepts a boolean parameter, consoleOutputToFile, that if set to true, all stdouot from tests are placed in a file. The file is console_output.txt and is placed in ${project.build.directory}/surefire-reports.
Hide
Permalink
Henry S. Isidro added a comment - 12/Jun/06 10:20 PM

Renamed files to comply with guidelines.

Show
Henry S. Isidro added a comment - 12/Jun/06 10:20 PM Renamed files to comply with guidelines.
Hide
Permalink
Carlos Sanchez added a comment - 19/Jun/06 10:25 AM

Added redirectTestOutputToFile option

Show
Carlos Sanchez added a comment - 19/Jun/06 10:25 AM Added redirectTestOutputToFile option

People

  • Assignee:
    Carlos Sanchez
    Reporter:
    Carlos Sanchez
Vote (0)
Watch (0)

Dates

  • Created:
    12/Jun/06 6:42 PM
    Updated:
    27/Aug/07 9:48 AM
    Resolved:
    19/Jun/06 10:25 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.