kotest / kotest-intellij-plugin

The official Kotest plugin for Intellij and Android Studio
Apache License 2.0
173 stars 20 forks source link

IntelliJ plugin instantiates specs excluded by tags #109

Closed kopper closed 3 years ago

kopper commented 3 years ago

I am trying to use tags in IntelliJ plugin by specifying VM options: -Dkotest.tags=!IntegrationTest. I want to prevent running and instantiating integration test specs. The result is that all tests except the ones tagged with IntegrationTest are run, which is :thumbsup: but all specs are instantiated despite the docs https://kotest.io/tags/ say otherwise. I debugged a bit and I think the reason is in the way IntelliJ plugin executes io.kotest.engine.launcher.MainKt. It doesn't pass any --tags, --include-tags, --exclude-tags as args and as a result no specs are actually excluded.

Which version of Kotest are you using Kotest 4.2.6 IntelliJ plugin 4.8.3

sksamuel commented 3 years ago

Where are you setting the -D property? In the run configuration?

kopper commented 3 years ago

Yup, run configuration for "Run with Kotest".

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.