Update pkl-core/src/test/kotlin/org/pkl/core/LanguageSnippetTestsEngine.kt

This commit is contained in:
Philip K.F. Hölzenspies
2024-02-13 16:55:34 +00:00
parent da597d838d
commit aa98123c93
@@ -142,6 +142,9 @@ abstract class AbstractNativeLanguageSnippetTestsEngine : AbstractLanguageSnippe
Regex(".*/import1b\\.pkl"),
)
/**
* Avoid running tests for native binaries when those native binaries have not been built.
*/
override fun discover(discoveryRequest: EngineDiscoveryRequest, uniqueId: UniqueId): TestDescriptor {
if (!pklExecutablePath.exists()) {
// return empty descriptor w/o children