Run rspec on VS Code

后端 未结 4 1109
日久生厌
日久生厌 2021-01-19 14:04

I have rspec test code like this

describe \'Utils\' do

  puts 1111
  describe \'#time_condition\' do
    puts 2221
    it do
      puts \'aaa\'
    end
             


        
4条回答
  •  无人共我
    2021-01-19 14:13

    If your project has rspec in its bin folder, you can try the following:

    {
      "name": "RSpec - all",
      "type": "Ruby",
      "request": "launch",
      "cwd": "${workspaceRoot}",
      "program": "${workspaceRoot}/bin/rspec",
      "args": [
        "-I",
        "${workspaceRoot}"
      ]
    },
    

提交回复
热议问题