Skip to content

Add option to create unit test for library #2650

@bsutton

Description

@bsutton

The eclipse ide has a nice little feature which will create a unit test for a java file.

I was hoping you could add something similar.

I have a file in:

lib/src/docker/images.dart

I open the vscode explorer to the above file and open the context menu for that file.
There is an option 'create unit test'

The option creates a library as per:
test/src/docker/images_test.dart

A nice bonus is that it generates a basic template for a unit test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in editorRelates to code editing or language featuresin testingRelates to test execution of Dart/Flutter tests for end usersis enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions