Open
Description
Hi friends, this isn't a bug, but a question;
I'm curious if it's possible to dynamically generate groups, such that we'd be able to generate a name for a group at execution time, based on available file, project, path, and coverage data?
Ideally I'd like to, for example, create sub-groups based on a specific file naming scheme or directory structure, e.g.:
Controllers: app/controllers
Controllers/$1 : app/controllers/$1/
Which could result in a final groups list similar to the following:
Controllers
Controllers/BlogController
Controllers/JobController
Controllers/UserController
etc.
I've attempted to do this by placing additional add_group
calls within the "parent" add_group
block, but Ruby explicitly blocks adding keys to the hash as it's being iterated upon, and I'm not aware of another facility to access the "current" file outside of an add_group
's do
block.