-
Notifications
You must be signed in to change notification settings - Fork 18
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 issues #53
Comments
Tests fail due to missing injection. See Jasmin's message from Set 13 on Gitter, please |
Do you have a link to that message? I don not use Gitter... ;-) |
@JanWesterkamp-iJUG here is the error message Cannot invoke "org.eclipse.microprofile.telemetry.tracing.tck.exporter.InMemorySpanExporter.reset()" because "this.spanExporter" is null
|
By the way, we are nearly out of time. If this issue cannot be solved today, we have to address this issue in the next release as we need to do the final RC asap (I plan to do a RC this evening), so that it will appear in maven central tomorrow morning. |
The short version for a try could be using the current instead of outdated versions for the parent test dependency definitions, (where somehow TestNG is included): In the maven properties section of the tck (or the telemetry-tracing) module, add the following (as needed/used): <version.testng>7.6.1</version.testng> Especially that Arquillian 1.7.0.Alpha12 version fixes some TestNG 7 issues. Updating the JUnit 5 version BOM to the current one would be a good idea too: <version.junit-jupiter>5.9.1</version.junit-jupiter> Of course, the dependencies need to be configured too, not only by importing the BOM. The long version for dependency overwrites would be using names for Maven properties that follow Maven naming conventions, which requires to add the dependencies in the dependency management section using that new name for the definition - If not usesed that way, my planed refacoring of the microprofile-parent property names will result in a breaking change for sure. |
Please go ahead to do a PR in this repo so that Yasmin can test it out asap. |
@Emily-Jiang: My questions above not aswered yet. If everything works fine with JUnit 5 (instead of TestNG), we can (and should stop) here immediately from my perspective. And the last is valid regarding Otel Java implementation and Spec support the way of doing the configuration (rely on Otel stable config property with deviating behaviour in MP, as decided by the majority of the MPWG) - and that fact was not my idea... We have also deviations for proper semver versioning of a lot of MP specs in the MP 6.0 Plan doing breaking changes with service releases too (Jakakta EE 10 & Java SE 11)... So having a vendor offering to act with is implementation as CI and pushing things forward is very important and welcome, but MP will fail in general, if jobs are done half only and technical dept piles up - this is in fact slowing us down and even more important let users decide to use something else! |
The answer is yes. |
Just to be sure: The problem is not exising in the main branch with JUnit 5? If your answer is still yes, then to outdated test dependency versions could/should be addressed in the microprofile-parent - I creaded an PR for that there already: eclipse/microprofile-parent#67 The only left thing then is to do the remaining version updates, i.e. found be the dependabot already - I will create a seaparte issue here for that aspect now. |
If the problem is related to JUnit 5, then updating might fix it (see linked release notes in this PR created by dependabot - so I would suggest to do that update anyway. |
To be sure that this is the root cause, I would need additional information to the error, but some of the fixed bugs might returned null before wrongly. |
There where open issues with TestNG.
@brunobat and @Emily-Jiang, I might missed something, but currently we are using JUnit 5, right? And the idea is to migrate to TestNG, because all od MircoProfile is using it?
And the intended migration to Test NG fails?
Originally I thought, TestNG creates some issues while using JUnit 5 - but I am wrong here?
I would definitive recommend (keep) using JUnit 5 instead TestNG 7...
Either way, I can give some recipe to overwrite the outdated dependencies from the current microprofile-parent 3.0.
Basically there are two options, one short (but not recomended!) version and the longer version, that might reduce furure breaking changes.
But first, can you clarify the exact issue with TestNG, please?
The text was updated successfully, but these errors were encountered: