Flutter-intellij: Flutter Test shows <no name> instead of file name in Android Studio and IntelliJ

Created on 22 Aug 2020  路  7Comments  路  Source: flutter/flutter-intellij

Problem

  1. Run any test will show as following
    Screen Shot 2020-08-23 at 8 21 49 AM

  2. when running a single/group test by clicking the icon in the editor. 'SILENT_OBSERVATORY' will show up.
    Screen Shot 2020-08-23 at 8 27 10 AM

bug

Most helpful comment

Issue still occurs on the latest version of IntelliJ IDEA 2020.2.3 (Ultimate Edition).

All 7 comments

Can you provide some details on what version of Flutter you are on and what action you took to run the tests?

Hi @jacob314 ,

Thanks for your reply, please see the following details.

Flutter doctor

[鉁揮 Flutter (Channel beta, 1.21.0-9.1.pre, on Mac OS X 10.15.6 19G2021, locale en-NZ)

[鉁揮 Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[鉁揮 Xcode - develop for iOS and macOS (Xcode 11.6)
[鉁揮 Android Studio (version 4.0)
[鉁揮 IntelliJ IDEA Ultimate Edition (version 2020.2)
[鉁揮 VS Code (version 1.46.0)
[鉁揮 Connected device (1 available)

Plugin and IDE version

Flutter 48.1.2 for Android Studio 4.0.1 Build #AI-193.6911.18.40.6626763, built on June 25, 2020
Flutter 48.1.4 for IntelliJ IDEA 2020.2 (Ultimate Edition) Build #IU-202.6397.94, built on July 27, 2020

@Peng-Qian does this problem occur if you use the stable channel of Flutter?

Hi @stevemessick ,

In the stable channel, tests can display the filename, but the second problem still there.
Screen Shot 2020-09-03 at 3 47 15 PM

I'm using the master channel. It looks like the name is there but is hidden by "no name".

Screen Shot 2020-09-11 at 10 16 39 AM

cc @jacob314 @devoncarew

The name of a virtual group changed from null to "" in beta.
From master:

{"group":{"id":2,"suiteID":0,"parentID":null,"name":"","metadata":{"skip":false,"skipReason":null},"testCount":1,"line":null,"column":null,"url":null},"type":"group","time":1840}

From stable:

{"group":{"id":2,"suiteID":0,"parentID":null,"name":null,"metadata":{"skip":false,"skipReason":null},"testCount":1,"line":null,"column":null,"url":null},"type":"group","time":1800}

I think we need to change line 595 of DartTestEventsConverterZ.java to check for an empty string. Unfortunately, I have to debug why I can't run tests from the debugger right now...

Issue still occurs on the latest version of IntelliJ IDEA 2020.2.3 (Ultimate Edition).

Was this page helpful?
0 / 5 - 0 ratings