vscode-ruby-test-adapter
vscode-ruby-test-adapter copied to clipboard
Better organization of tests
Ideally we would follow the same hierarchy as the tests, but I'm not sure how to get an Rspec custom formatter to output the right information to make that possible.
It's not really possible to derive the information from the test names because tests sharing the beginning of their names isn't indicative of whether they belong in the same group. e.g. "ApplicationHelper flash class sets the correct class for a notice" and "ApplicationHelper flash class sets the correct class for a warning" would match up until the last word, even though that's not how the test hierarchy should be represented.
This is mostly resolved at this point since I categorize tests based on directory and filename now.
I'm not 100% sure if this was your intention for this enhancement, but it would be awesome to see describes/it blocks broken down within each file inside the test explorer so that each test is not repeating information in the test explorer - like your example with "ApplicationHelper flash class sets the correct class..." - this would also make it easier to understand visually how our tests are currently organized, which tests belong to which suites, etc.
In any case, much kudos and thanks for making this extension 😁