flutter / flutter/flutter-intellij

testWidgets within a `group`

Open
#1,249 9 comments 0 reactions 1 assignee Claimed by @pq View on GitHub
topic-testing
Dominant language
Java
Stars
2k
Forks
356
Avg merge
1d 11h
Merged PRs (30d)
27

Description

## Steps to Reproduce

1. Create a test file
2. Create a `group` declaration. e.g. `group("MyGroupOfWidgetTests", () { /* Widget Tests here */ });`
3. Put some widget tests within the group
4. Run the tests
5. PROBLEMS:
- Tests are nested an extra level, making them a bit more difficult to read
- One cannot run `testWidgets` tests individually within a group, only the group itself.

## Workarounds

Remove the `group` and move tests to their own file. When tests are out of the group, they are displayed properly and can be run individually.

## Screenshots

screenshot 2017-07-29 00 03 19

screenshot 2017-07-29 00 05 47

## Version info

[✓] IntelliJ IDEA Community Edition (version 2017.2)
• Flutter plugin version 16.0
• Dart plugin version 172.3317.48

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.