diff --git a/src/dlangide/builders/builder.d b/src/dlangide/builders/builder.d index 3cadd4a..0886a87 100644 --- a/src/dlangide/builders/builder.d +++ b/src/dlangide/builders/builder.d @@ -64,7 +64,11 @@ class Builder : BackgroundOperationWatcher { } else if (_buildOp == BuildOperation.Clean) { params ~= "clean".dup; } else if (_buildOp == BuildOperation.Run) { - params ~= "run".dup; + if (_projectConfig.type == ProjectConfiguration.Type.Library) { + params ~= "test".dup; + } else { + params ~= "run".dup; + } } else if (_buildOp == BuildOperation.Upgrade) { params ~= "upgrade".dup; params ~= "--force-remove".dup;