question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unit tests all pass but the left gutter icon still showing it failed

See original GitHub issue

Steps to Reproduce

  1. Run multiple unit tests that pass
  2. The left gutter icon will not toggle to passing

Notice the first unit test left gutter icon is showing the test failed. It has passed, and is noted in the debug console view. screen shot 2018-02-24 at 11 00 04 am

Version info

brandons-mbp:economy branflake2267$ flutter doctor -v
[✓] Flutter (Channel master, v0.1.5-pre.19, on Mac OS X 10.13.3 17D47, locale en-US)
    • Flutter version 0.1.5-pre.19 at /Users/branflake2267/git/flutter
    • Framework revision 37ffb2d730 (3 days ago), 2018-02-21 15:01:46 -0800
    • Engine revision ead227f118
    • Dart version 2.0.0-dev.28.0.flutter-0b4f01f759

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.2)
    • Android SDK at /Users/branflake2267/Library/Android/sdk
    • Android NDK at /Users/branflake2267/Library/Android/sdk/ndk-bundle
    • Platform android-27, build-tools 27.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)

[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.2, Build version 9C40b
    • ios-deploy 1.9.2
    • CocoaPods version 1.4.0

[✓] Android Studio (version 3.0)
    • Android Studio at /Applications/Android Studio 3.0.app/Contents
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)

[✓] Android Studio (version 3.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)

[✓] IntelliJ IDEA Ultimate Edition (version 2017.3.3)
    • Flutter plugin version 21.1.3
    • Dart plugin version 173.4301.22

[✓] IntelliJ IDEA Community Edition (version 2017.2.6)
    • Flutter plugin version 21.1.2
    • Dart plugin version 172.4343.25

[✓] VS Code (version 1.20.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Dart Code extension version 2.8.2

[✓] Connected devices
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.0.0 (API 26) (emulator)

• No issues found!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
branflake2267commented, Apr 11, 2018

I figured out a breakable method.

  1. Run all the tests, see that they pass, click on the >> on main and run debug as.
  2. Cause the first test to fail.
  3. Then fix the test.
  4. Then run all the tests again, they should turn all green
  5. The first test icon won’t reset back to green.
1reaction
pqcommented, Feb 26, 2018

Ok, weird. Thanks @branflake2267 !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xcode fails to discover tests, missing gutter test diamonds
Our test suite contains ~6000 unit tests derived from XCTestCase. This problem is reproducible on El Capitan 10.11.3, both when using Xcode 7.2....
Read more >
Unable to run common tests on Android via gutter icon in a ...
There are Run gutter icons for the generated tests. Click on any icon, try to run the test. The test wouldn't run, No...
Read more >
Live unit testing made annoying blue dashes appear
When Live Unit Testing is on, the blue dashes show uncovered lines of code. ... All I care about LUT is to see...
Read more >
Test Explorer in Visual Studio Code - James Pearson
The explorer supports different ways of sorting and displaying the tests. Icons are added into the gutter alongside test methods in the editor....
Read more >
Gradle does not find my tests with Kotlin and JUnit 5
Shameless self-advert: JUnit 5 and Gradle (also shows Gradle test logging): How ... But when you run the main method using the gutter...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found