[ 
https://issues.apache.org/jira/browse/ARTEMIS-4832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Clebert Suconic closed ARTEMIS-4832.
------------------------------------

> direct test output to file by default
> -------------------------------------
>
>                 Key: ARTEMIS-4832
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4832
>             Project: ActiveMQ Artemis
>          Issue Type: Task
>          Components: Tests
>    Affects Versions: 2.35.0
>            Reporter: Robbie Gemmell
>            Assignee: Robbie Gemmell
>            Priority: Major
>             Fix For: 2.36.0
>
>
> Currently the artemis build prints all the test stdout to the console. This 
> can make it difficult to see individual results as they occur or look back 
> either while the suite is running or afterwards (previously even more of an 
> issue prior to ARTEMIS-4831).
> Many of the tests generate _a lot_ of output. As a result, even the small 
> subset used in the PR checks is already enough to overflow the limit GitHub 
> allows to occur before truncating all outpu{{monospaced text}}t and requiring 
> downloading the job logs, which you need to wait until after the run has 
> finished to see. Redirecting the output will allow seeing specific results 
> more easily, and also relative progress of the job prior to completion. The 
> PR subset is but a small fraction of the total, so e.g when running the wider 
> test suite locally with lots more integration tests this is actually even 
> worse as the console will typically exceed its buffer so you simply cant see 
> most results at all without e.g generating the surefire report later.
> Surefire already has a dedicated property to control this behaviour, easily 
> configurable via the pom (already there) or the CLI: 
> {_}maven.test.redirectTestOutputToFile{_}. Set this true such that the test 
> output is directed to file by default, leaving results succinctly visible on 
> the console. Archive the surefire log output whenever the GHA CI job fails so 
> the test output can still be inspected for a period if needed.
> Anyone that does specifically wish to have the test output still sent to the 
> console can get this on request by configuring surefire when running, e.g:
> {noformat}
> mvn test -Dmaven.test.redirectTestOutputToFile=false
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to