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

test suite fails #6

Open
rogers0 opened this issue Dec 6, 2020 · 7 comments
Open

test suite fails #6

rogers0 opened this issue Dec 6, 2020 · 7 comments
Assignees

Comments

@rogers0
Copy link

rogers0 commented Dec 6, 2020

I packaged this library into Debian, and it seems that there're two failure when testing.
Have you ever met this kind of issue?

error log:

[INFO] Tests run: 17, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.188 s - in com.igormaznitsa.upom.logictests.LogicTest
[INFO] Running com.igormaznitsa.upom.UPomMojoConfigTest
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 1.389 s <<< FAILURE! - in com.igormaznitsa.upom.UPomMojoC
onfigTest
[ERROR] testDefaultConfig(com.igormaznitsa.upom.UPomMojoConfigTest)  Time elapsed: 1.255 s  <<< ERROR!
java.lang.NullPointerException
        at com.igormaznitsa.upom.UPomMojoConfigTest.init(UPomMojoConfigTest.java:36)
        at com.igormaznitsa.upom.UPomMojoConfigTest.testDefaultConfig(UPomMojoConfigTest.java:62)

[ERROR] testNonDefaultConfig(com.igormaznitsa.upom.UPomMojoConfigTest)  Time elapsed: 0.13 s  <<< ERROR!
java.lang.NullPointerException
        at com.igormaznitsa.upom.UPomMojoConfigTest.init(UPomMojoConfigTest.java:36)
        at com.igormaznitsa.upom.UPomMojoConfigTest.testNonDefaultConfig(UPomMojoConfigTest.java:82)

[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors: 
[ERROR]   UPomMojoConfigTest.testDefaultConfig:62->init:36 ? NullPointer
[ERROR]   UPomMojoConfigTest.testNonDefaultConfig:82->init:36 ? NullPointer
[INFO]
[ERROR] Tests run: 19, Failures: 0, Errors: 2, Skipped: 0
[INFO]
[ERROR] There are test failures.
@rogers0
Copy link
Author

rogers0 commented Dec 6, 2020

you can check the full build log on:
http://debomatic-amd64.debian.net/distribution#unstable/uber-pom/1.0.3-3/buildlog
(need to chick "view the whole file" on the top right of the page)

autopkgtest log:
http://debomatic-amd64.debian.net/distribution#unstable/uber-pom/1.0.3-3/autopkgtest
(the result is false pass, you can see the error in the middle of the log)

@raydac
Copy link
Owner

raydac commented Dec 6, 2020

what is the version of maven?
I found in log that maven 3.6.3, will check

@raydac raydac self-assigned this Dec 6, 2020
@raydac
Copy link
Owner

raydac commented Dec 6, 2020

under ubuntu 20.04 build works well, I will try to build under debian 10.7.0

@rogers0
Copy link
Author

rogers0 commented Dec 6, 2020

I triggered a build for ubuntu 20.04:

Yes, built well, but that's because I set to ignore the errors.
The log still shows the same error:

[INFO] Results:
[INFO] 
[ERROR] Errors: 
[ERROR]   UPomMojoConfigTest.testDefaultConfig:62->init:36 » NullPointer
[ERROR]   UPomMojoConfigTest.testNonDefaultConfig:82->init:36 » NullPointer

@raydac
Copy link
Owner

raydac commented Dec 6, 2020

I have installed Debian 10.7.0 under virtual box, cloned the project and build it, everything built ok.. looks like something breaks work of org.apache.maven.plugin-testing:maven-plugin-testing-harness:2.1 during build process in your case and it can't correctly init its internal objects, looks like that it can't find ProjectBuilder through lookup
and just building of the plugin works well in that environment?

@rogers0
Copy link
Author

rogers0 commented Dec 7, 2020

looks like something breaks work of org.apache.maven.plugin-testing:maven-plugin-testing-harness:2.1

Thanks for identifying this!
Yes, the root cause is maven cannot find maven-plugin-testing-harness, even I already installed it.
I'll dig more about it.

just building of the plugin works well in that environment?

build without test seems working fine, so far.

@raydac
Copy link
Owner

raydac commented Dec 11, 2020

@rogers0 any news? may be you need some help?

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