flutter / flutter/flutter-intellij

Feature request : Shortcut to create tests

Open
#2,998 24 comments 52 reactions 0 assignees View on GitHub
P2 topic-testing
Dominant language
Java
Stars
2k
Forks
356
Avg merge
1d 11h
Merged PRs (30d)
27

Description

Would be nice to have a shortcut to create test when we have one of those popup:
capture d ecran 2018-12-27 a 13 12 18
capture d ecran 2018-12-27 a 13 11 57

A bonus would be that if the class is a widget it create a template for widget test, if not unit test.

That a functionality we have already on Android:
capture d ecran 2018-12-27 a 13 13 53

It's very useful because it create a template test file directly in same place/package as the class.
For our case if we have a class in `lib/catalog/bloc/mybloc.dart` it will create a test file in `test/catalog/bloc/mybloc_test.dart`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.