Skip to content

Commit 3d56c45

Browse files
author
Sam Eagen
committed
Do not run tests without gRPC
1 parent 05b8948 commit 3d56c45

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/tbuildtoolplugin.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ function setupOnce(testCase)
2727
function setup(testCase)
2828
commonSetup(testCase);
2929
end
30+
31+
function onlyTestIfgRPCIsInstalled(testCase)
32+
testCase.assumeTrue(logical(exist("opentelemetry.exporters.otlp.OtlpGrpcSpanExporter", "class")), ...
33+
"Otlp gRPC exporter must be installed.");
34+
end
3035

3136
function createBuildRunner(testCase)
3237
plugin = matlab.buildtool.plugins.OpenTelemetryPlugin();

0 commit comments

Comments
 (0)