IdeaGinkgo / Intellij-Ginkgo

Idea plugin for running and viewing ginkgo tests
GNU General Public License v3.0
34 stars 13 forks source link

Enable debug option for tests running #4

Closed TaylorOno closed 2 years ago

TaylorOno commented 3 years ago

There is not currently a debug option while running ginkgo tests.

Ideally the ginkgo debug functionality would work exactly like go test debug allowing easier trouble shooting.

adammw commented 3 years ago

Not sure if it's as simple as directly attaching the debugger to the runner or not, but I managed to get focused, debuggable tests by instead using the built-in go test runner, and the -ginkgo.focus="blah" option in program arguments.

Troublor commented 2 years ago

Tired to manually specify -ginkgo.focus="blah.blah.blah" in go test run configuration, I extend the IntelliJ-Ginkgo plugin to automatically generate a go test runner along with ginkgo runner and make debugging possible.

This is still very rough (no testing output parsing, etc.), but it works well to debug as a complement to Ginkgo run configuration.

You can build the extended plugin using the code in my fork: Troublor/Intellij-Ginkgo

./gradlew buildPlugin

This Gradle task will generate the plugin artifact in build/distributions that can be installed in Goland.

TaylorOno commented 2 years ago

I am at a "works on my machine" point for debugging with reporter output. Hopefully I have more new soon