flutter-intellij icon indicating copy to clipboard operation
flutter-intellij copied to clipboard

Flutter Test run configuration ignores dart_test.yaml

Open Gieted opened this issue 6 months ago • 0 comments

Steps to Reproduce

  1. Create dart_test.yaml file inside root directory of your project
timeout: 300ms
  1. Create some test:
import 'dart:async';
import 'package:flutter_test/flutter_test.dart';

void main() {
  test('prints "hello world!"', () async {
    final completer = Completer<void>();
    await completer.future;
    print('hello world!');
  });  
}

  1. Run it using IDE's green arrow obraz

  2. See test configuration being ignored (it should fail after 300ms)

Version info

[✓] Flutter (Channel stable, 3.16.3, on Microsoft Windows [Version 10.0.22621.2715], locale pl-PL)
    • Flutter version 3.16.3 on channel stable at C:\tools\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b0366e0a3f (4 days ago), 2023-12-05 19:46:39 -0800
    • Engine revision 54a7145303
    • Dart version 3.2.3
    • DevTools version 2.28.4

[✓] Windows Version (Installed version of Windows is version 10 or higher)

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Users\Gieted\AppData\Local\Android\sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = C:\Program Files\Chromium\Application\chrome.exe

[✓] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.4.3)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.4.33205.214
    • Windows 10 SDK version 10.0.22000.0

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[✓] IntelliJ IDEA Ultimate Edition (version 2023.3)
    • IntelliJ at C:\Users\Gieted\AppData\Local\Programs\IntelliJ IDEA Ultimate
    • Flutter plugin version 77.0.1
    • Dart plugin version 233.11799.172

[✓] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22621.2715]
    • Chrome (web)      • chrome  • web-javascript • unknown
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 120.0.2210.61

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.

Gieted avatar Dec 10 '23 13:12 Gieted