Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test with coverage disabled #7810

Open
Bogala opened this issue Nov 22, 2024 · 5 comments
Open

Test with coverage disabled #7810

Bogala opened this issue Nov 22, 2024 · 5 comments
Assignees
Milestone

Comments

@Bogala
Copy link

Bogala commented Nov 22, 2024

Hello,

I can't launch Tests with Coverage since my last plugin update :

  • the option is not available
  • when I add manually shortcut tu Run "Tests in test" with coverage, the button is disabled
    image

Steps to Reproduce

I have tried :

  • File | Invalidate Caches | Invalidate and Restart
  • steps suggested by File | Repair IDE
  • Manually re-generate project configuration settings
  • Reinstall plugins
  • Reinstall IDE (IntelliJ IDEA Ultimate
  • With other IDE (Android Studio)

Version info

Flutter Doctor

Flutter (Channel stable, 3.24.5, on macOS 15.1.1 24B91 darwin-arm64, locale en-FR)
• Flutter version 3.24.5 on channel stable
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision dec2ee5c1f (), 2024-11-13 11:13:06 -0800
• Engine revision a18df97ca5
• Dart version 3.5.4
• DevTools version 2.37.3

Xcode - develop for iOS and macOS (Xcode 16.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16B40
• CocoaPods version 1.15.2

IntelliJ IDEA Ultimate Edition (version 2024.3)
• IntelliJ at /Users/bfontaine/Applications/IntelliJ IDEA Ultimate.app
• Flutter plugin version 82.2.4
• Dart plugin version 243.22562.3

IDE Configuration

IntelliJ IDEA 2024.3 (Ultimate Edition)
Build #IU-243.21565.193, built on November 13, 2024
Licensed to Benoit FONTAINE
Subscription is active until December 6, 2024.
Runtime version: 21.0.5+8-b631.16 aarch64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.lwawt.macosx.LWCToolkit
macOS 15.1.1
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 4096M
Cores: 10
Metal Rendering is ON
Registry:
suggest.all.run.configurations.from.context=true
ide.experimental.ui=true
i18n.locale=
terminal.new.ui=true
Non-Bundled Plugins:
com.intellij.apacheConfig (243.21565.208)
PythonCore (243.21565.211)
com.jetbrains.rust (243.21565.245)
name.kropp.intellij.makefile (243.21565.122)
com.github.bufbuild.intellij (0.4.1)
org.jetbrains.plugins.go (243.21565.211)
com.jetbrains.space (243.21565.122)
Pythonid (243.21565.211)
com.intellij.mermaid (0.0.24+IJ.243)
gherkin (243.21565.122)
org.jetbrains.plugins.gitlab (243.21565.204)
org.jetbrains.plugins.github (243.21565.204-ultimate)
Dart (243.22562.3)
pl.pszklarska.pubversionchecker (1.3.5)
org.jetbrains.android (243.21565.214)
com.android.tools.design (243.21565.214)
com.intellij.tide (243.21565.245)
io.flutter (82.2.4)
mobi.hsz.idea.gitignore (4.5.4)
com.jetbrains.php (243.21565.211)
izhangzhihao.rainbow.brackets (2024.2.7-241)
com.github.copilot (1.5.29.7524)
Kotlin: 243.21565.193-IJ

@AntoineMaille
Copy link

Hello,

Same problem here

@jwren jwren self-assigned this Nov 26, 2024
@jwren jwren added this to the M84 milestone Nov 26, 2024
@doctor-g
Copy link

doctor-g commented Dec 6, 2024

I may have encountered the same problem and have been able to come up with a simple reproduction of it:

  1. Create a new Flutter project. Notice that widget_test.dart can be run with coverage by right-clicking on it.
  2. Add Dart's test library via flutter pub add dev:test. Running with coverage is no longer available.

@jwren
Copy link
Member

jwren commented Dec 10, 2024

Context: When the Flutter IJ was updated to use the required IntelliJ Platform Gradle Plugin version 2.1.0, see #7774, the coverage code refused to build, it was removed at that time. It is my intention to get it working again.

@jwren
Copy link
Member

jwren commented Dec 20, 2024

Update here, for just the 2023.3 build (AS Meerkat) version of the plugin, the dependencies aren't resolvable. Normal methods haven't yielded a solution yet:

  1. I am compiling against the most recent AS canary
  2. The files have not been modified in intellij-community
  3. Other plugins haven't made any changes, having a dependency on com.intellij.modules.coverage in the plugin.xml is still sufficient for other plugins.

Example of the error being produced by

    symbol:   class ProjectData
    location: class FlutterCoverageRunner
  /usr/local/google/home/jwren/src/flutter-intellij/flutter-idea/src/io/flutter/run/coverage/FlutterCoverageRunner.java:35: error: cannot find symbol
      final ProjectData projectData = new ProjectData();

jwren added a commit to jwren/flutter-intellij that referenced this issue Dec 20, 2024
jwren added a commit that referenced this issue Dec 27, 2024
@rydmike
Copy link

rydmike commented Dec 29, 2024

Thanks @jwren for you efforts in getting this to work again. I'm really hit by this, I have tried several other in editor and external code coverage test display/analysis tools, but nothing comes close to the convenience IntelliJ has on this front.

I even tried using VS-Code, but I could not get the extension "Coverage Gutters" that is supposed to do something similar there, to work either, it just does nothing when I tried.

Currently I have 3 pub package updates on hold, since I can't analyze my test coverage with any sensible tool that I'm used too and with decent DX, before I publish them.

Still looking for some alternative tool that would work even temporarily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants