Swift testing coverage includes dependencies

When I build a swift package using swift test it includes all the dependencies in the coverage report. This is resulting in a wildly different total coverage percentage from what I see in Xcode. Is there a way to gather coverage for a specific target like when using test plans? Or some way to filter out dependencies from the resulting coverage reports?