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

Unit test failure when building logback-classic from source #882

Open
Fernando-LRz opened this issue Nov 26, 2024 · 0 comments
Open

Unit test failure when building logback-classic from source #882

Fernando-LRz opened this issue Nov 26, 2024 · 0 comments

Comments

@Fernando-LRz
Copy link

Fernando-LRz commented Nov 26, 2024

Hello,

I am trying to build logback-classic versions 1.5.8 and 1.5.11 from source, but some unit tests are failing. For example:

  • [ERROR] LogbackListenerTest.testThatErrorIsDetectedAtLogInit:55 Expected ch.qos.logback.classic.issue.logback1159.LoggingError to be thrown, but nothing was thrown.
  • [ERROR] ReconfigureOnChangeTaskTest.propertiesConfigurationTest:188 expected: ERROR but was: WARN
  • Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M7:test (default-test) on project logback-classic: There are test failures.

I have tried using several Java versions, including versions starting from version 21, as well as different Maven versions, but the error persists. This issue seems to be specific to logback-classic, as with my current setup, I can successfully build other modules, such as logback-core, and run its unit tests without errors.

I tried building logback-classic without running the tests, and it was successful, but I need to run the tests.

Could you please share any suggestions or advice on how to resolve this?
Thank you.

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

No branches or pull requests

1 participant