Conversation
|
@marcosgopen - please can I ask you to draw my attention to where the testing was re-enabled in the changes? |
|
quarkus tests and tck tests were skipped because of configuration issues. that is because the tck needs the junit-engine-vintage as microprofile-lra-tck uses junit 4 and we have junit 6 (that is why tests were skipped). |
|
Concerning quarkus tests: There was a problem in the failsafe plugin configuration. The error was introduced when I removed the parent pom of the lra-test-quarkus project (as the configuration was not inherited anymore). Adding the parent pom again fixes the issue. |
| <groupId>org.jboss.narayana.lra</groupId> | ||
| <artifactId>lra-test-arquillian-extension</artifactId> | ||
| <scope>test</scope> | ||
| <exclusions> |
| <dependency> | ||
| <groupId>org.jboss.narayana.lra</groupId> | ||
| <artifactId>lra-test-arquillian-extension</artifactId> | ||
| <scope>test</scope> |
|
|
||
| <groupId>org.jboss.narayana.lra</groupId> | ||
|
|
||
| <parent> |
There was a problem hiding this comment.
Adding again the parent pom to inherit the correct failsafe configuration for IT testing
| <properties> | ||
| <version.quarkus>3.31.3</version.quarkus> | ||
| <!-- currently only defines where to search for the coordinator, it does not change where the coordinator is started --> | ||
| <lra.coordinator.host>localhost</lra.coordinator.host> |
There was a problem hiding this comment.
These properties are inherited now.
| <groupId>org.jboss.narayana.lra</groupId> | ||
| <artifactId>lra-test-arquillian-extension</artifactId> | ||
| <exclusions> | ||
| <exclusion> |
There was a problem hiding this comment.
microprofile-lra-tck uses junit4, so use the vintage engine instead and exclude the not needed junit-jupiter dependencies from lra-test-arquillian
There was a problem hiding this comment.
Ah, interesting, thank you
| </dependency> | ||
| <dependency> | ||
| <groupId>jakarta.enterprise.concurrent</groupId> | ||
| <artifactId>jakarta.enterprise.concurrent-api</artifactId> |
There was a problem hiding this comment.
concurrent-api dependency is needed since https://github.com/jbosstm/lra/pull/206/changes, we haven't spotted it before because the tests were skipped.
| </exclusion> | ||
| </exclusions> | ||
| </dependency> | ||
| <dependency> |
There was a problem hiding this comment.
Adding smallrye-config-core here to fix an issue in lra-test-quarkus-context-test: smallrye-config version in this project is different from the one defined in the quarkus-bom used in lra-test-quarkus-context-test. So there was a mismatch between smallrye-config and smallrye-config-core causing incompatibility in compilation.
Having smallrye-config-core and smallrye-config defined in the root pom we can control that the version of both dependencies is aligned.
junit-vintage-engine is needed for compatibility to junit 4 until tck upgrade to junit5 excluding junit5 dependencies from arquillian extension as not compatible with junit4 adding missing concurrent-api dependency needed for tck testing
smallrye-config-core needed to avoid mixing dependency version with quarkus bom
dc7cb1d to
f1c4e7d
Compare
Re enable quarkus and tck testing which were skipped