Skip to content

Commit

Permalink
Segregate tests that use special global tracer (helidon-io#9783)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjquinno authored Feb 12, 2025
1 parent 9c95354 commit b54baba
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
15 changes: 15 additions & 0 deletions microprofile/telemetry/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@
<excludes>
<exclude>**/AgentDetectorTest.java</exclude>
<exclude>**/TestSpanListenersWithInjection.java</exclude>
<exclude>**/TestGlobalTracerAssignment.java</exclude>
</excludes>
</configuration>
</execution>
Expand Down Expand Up @@ -186,6 +187,20 @@
</includes>
</configuration>
</execution>
<execution>
<!--
This test sets the global tracer to a no-op tracer which would interfere with other tests.
-->
<id>test-global-tracer-assignment</id>
<goals>
<goal>test</goal>
</goals>
<configuration>
<includes>
<include>**/TestGlobalTracerAssignment.java</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
Expand Down
21 changes: 21 additions & 0 deletions tracing/providers/opentelemetry/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,27 @@
</configurationParameters>
</properties>
</configuration>
<executions>
<execution>
<id>default-test</id>
<configuration>
<excludes>
<exclude>**/TestGlobalTracerAssignment.java</exclude>
</excludes>
</configuration>
</execution>
<execution>
<id>test-global-tracer-assignment</id>
<goals>
<goal>test</goal>
</goals>
<configuration>
<includes>
<include>**/TestGlobalTracerAssignment.java</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Expand Down

0 comments on commit b54baba

Please sign in to comment.