apache / apache/maven-surefire

[SUREFIRE-2271] No logs from testcases visible when running integration tests

Open
#2,660 3 comments 0 reactions 0 assignees View on GitHub
bug priority:critical
Dominant language
Java
Stars
461
Forks
588
Avg merge
1d 8h
Merged PRs (30d)
19

Description

**[mikael petterson](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=eraonel)** opened **[SUREFIRE-2271](https://issues.apache.org/jira/browse/SUREFIRE-2271?redirect=false)** and commented

Hi,

I am running our integration tests with the failsafe plugin using:

mvn clean verify

I can see that logging messages ( slf4j + log4j2) for the unit tests ( testng) is present in the console. Then when it comes to the integration tests I don't see any output at all until a test fails, then I see the error message.

I have log4j2-test.xml files located in the maven modules.

I attach logs when running:

mvn -X  failsafe:integration-test

//mikael

 

 

---

**Affects:** 3.5.0

**Attachments:**
- [maven-failsafe-plugin_log.txt](https://issues.apache.org/jira/secure/attachment/13071738/maven-failsafe-plugin_log.txt) (_46.13 kB_)

Contributor guide

Open the contributing guide

Research direction

Reproduce the report with `mvn clean verify` and compare the unit-test and integration-test console output, then inspect the attached `maven-failsafe-plugin_log.txt` and the referenced Failsafe configuration. Done means determining why SLF4J and Log4j2 messages are absent during integration tests and making the expected integration-test logging visible without waiting for a failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.