flutter / flutter/flutter-intellij

Jump to source of testWidgets is not working when group name of test is a variable

Open
#5,524 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2k
Forks
356
Avg merge
1d 11h
Merged PRs (30d)
27

Description

## Steps to Reproduce
1. Write a testWidget inside a group with a variable as name
2. Run test and Click on jump source
```

// 'Avatar Page'
void main() {
var currentFolder = "currentFolder";
group(currentFolder, () {
test('Foo', () {});
test('Bar', () {});
testWidgets('Widget test', (WidgetTester tester) async {
await preSetValidPhotoUrl(tester);
});
....
```

Jump to source does nothing for "Widget test" but works for "Foo" and "Bar"

## Version info

I am already using this build https://github.com/flutter/flutter-intellij/pull/5486 but I still have this problem when group name is not a static string. (57.0.1.dev)

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.