test(help): bundle version test compares with the artifact version #21

Merged
KofTwentyTwo merged 1 commits from fix/help-bundle-version-test into develop 2026-10-15 04:18:43 +00:00
2 changed files with 11 additions and 1 deletions

No files matched your search

+10
View File
@@ -144,6 +144,16 @@
</resource>
</resources>
<plugins>
<!-- the artifact version, for the help bundle version test -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables combine.children="append">
<qbit.artifactVersion>${project.version}</qbit.artifactVersion>
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
@@ -49,7 +49,7 @@ class EdiHelpBundleTest
assertThat(HelpBundles.of(instance).getBundles()).singleElement().satisfies(bundle ->
{
assertThat(bundle.getId()).isEqualTo("qbit-edi");
assertThat(bundle.getVersion()).isEqualTo("0.1.0-SNAPSHOT");
assertThat(bundle.getVersion()).as("the help bundle carries the artifact version").isEqualTo(System.getProperty("qbit.artifactVersion"));
});
HelpBundles.syncOnStartup(instance);
HelpBundleAssertions.forInstance(instance)