connorshea / vscode-ruby-test-adapter

A Ruby test adapter extension for the VS Code Test Explorer
https://marketplace.visualstudio.com/items?itemName=connorshea.vscode-ruby-test-adapter
MIT License
83 stars 50 forks source link

Display nested describes & contexts as subtrees #35

Open Arthaey opened 4 years ago

Arthaey commented 4 years ago

Your environment

Expected behavior

When I use nested describes or contexts, I want them to be displayed in the Test Explorer as subtrees that reflect how I've organized the code.

describe "Foo" do
    it "CORRECT: nested 1 level deep, directly under filename"

    context "Bar" do
        it "REQUEST: should be nested 2 levels deep"
    end
end
> example_spec.rb
  - Foo CORRECT: nested 1 level deep, directly under filename
  > Foo Bar
    - REQUEST: should be nested 2 levels deep

Actual behavior

Screen Shot 2019-12-24 at 12 03 33 PM