ruby-debug / ruby-debug-ide

An interface which glues ruby-debug to IDEs like Eclipse (RDT), NetBeans and RubyMine.
https://www.jetbrains.com/ruby/features/ruby_debugger.html
Other
373 stars 83 forks source link

Add Minitest as a default debug configuration #195

Closed Syntaf closed 4 years ago

Syntaf commented 4 years ago

👋 any interest in adding a default minitest debug configuration? I can happily submit a PR if so.

After spending way too much time looking online for a solution for debugging failing Mintest tests in VSCode, I realized it was actually quite simple using this extension and the following config:

    {
      "cwd": "${workspaceRoot}",
      "name": "Minitest - Run at cursor position",
      "type": "Ruby",
      "request": "launch",
      "program": "${workspaceRoot}/bin/rails",
      "args": [
        "test",
        "${file}:${lineNumber}"
      ]
    }

Since RSpec is an available default configuration it would be great to also have a Minitest one.

Syntaf commented 4 years ago

This is the wrong repository, please ignore 🤦 .