Skip to content

Move to file option for test groups #57121

Open
@FMorschel

Description

@FMorschel

I have this project and it was first structured with all new subclasses being created on the same file but I made a choice to separate them all into specific files (this pattern could also start to happen with sealed classes and part files in the future).

Now, the tests for the project were following the same structure as the /lib/src so all tests for one class were written on the same file inside another group for it. And now I have the grinding work to move all classes to their specific files mainly being solved by Move top-level to file (except a few bugs with exports with currently open issues for them).

But to move every group is a bit grinding still and I'd like to ask for a similar feature to move top-level groups that don't refer to anything outside their scope into new files with the overhead of adding the new void main() { ... } and imports.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.area-testCross-cutting test issues (use area- labels for specific failures; not used for package:test).devexp-refactoringIssues with analysis server refactoringstype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions