Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestNG automatically adds new line after each log message. #2917

Open
1 of 7 tasks
stahirov opened this issue May 31, 2023 · 1 comment
Open
1 of 7 tasks

TestNG automatically adds new line after each log message. #2917

stahirov opened this issue May 31, 2023 · 1 comment

Comments

@stahirov
Copy link

stahirov commented May 31, 2023

TestNG Version

7.4.0 and later

Expected behavior

Each log message should be printed on separate line if in the log4j2.properties file it is specified a new line character at the end of the pattern

Actual behavior

There is an empty line after each log message.
After I removed the new line character in the pattern each log message was still on separate lines.
That indicates that the new line is added by something else and the empty lines were result of the new line character in the pattern

Is the issue reproducible on runner?

  • Shell
  • Maven
  • Gradle
  • Ant
  • Eclipse
  • IntelliJ
  • NetBeans

Test case sample

Please, share the test case (as small as possible) which shows the issue
The test only logs some messages.

Contribution guidelines

Incase you plan to raise a pull request to fix this issue, please make sure you refer our Contributing section for detailed set of steps.

Copy link

Hi, @stahirov.
We need more information to reproduce the issue.

Please help share a Minimal, Reproducible Example that can be used to recreate the issue.

In addition to sharing a sample, please also add the following details:

  • TestNG version being used.
  • JDK version being used.
  • How was the test run (IDE/Build Tools)?
  • How does your build file (pom.xml | build.gradle | build.gradle.kts) look like ?

It would be better if you could share a sample project that can be directly used to reproduce the problem.
Reply to this issue when all information is provided, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants