You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
flutter test --coverage and flutter test --watch #4719
It looks like it won't be implemented anytime soon so I'm considering a workaround - since flutter already supports hot reload, I could add my tests as a package directly to the app as dev dependency, and re run tests on each hot reload.
Is there any possibility that flutter test --watch run only the tests related to the file that changed?
I loved the behavior of https://github.com/guard/guard-test.
Reacted by Michael Lee, Slava Shklyaev, Ajil Oommen, Dimas Cyriaco, Joackim de Bourqueney, Malte Nottmeyer, Wing Chau, Damian Bast, Felipe Peter, Lucie BANITZ and 1 more
can we possible have something similar to how bazel does caching of tests.
if you're familiar with running a project that has bazel, you will notice that only tests of files changed are run after the first run which runs everything.
if we integrate this into the watch flag it would make development so much faster.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
[fuchsia] Place Observatory in the runner's package instead of linkin…
Hixie commentedon Sep 12, 2018
cc @aam
16 remaining items
szotp commentedon Aug 22, 2020
It looks like it won't be implemented anytime soon so I'm considering a workaround - since flutter already supports hot reload, I could add my tests as a package directly to the app as dev dependency, and re run tests on each hot reload.
EDIT: This actually works pretty well, I've made a package for other people to try it: https://github.com/szotp/hottie/
HerrNiklasRaab commentedon Oct 28, 2020
Related: Dart-Code/Dart-Code#2878
danielgomezrico commentedon Dec 10, 2020
Is there any possibility that
flutter test --watchrun only the tests related to the file that changed?I loved the behavior of https://github.com/guard/guard-test.
YazeedAlKhalaf commentedon Jul 20, 2022
can we possible have something similar to how bazel does caching of tests.
if you're familiar with running a project that has bazel, you will notice that only tests of files changed are run after the first run which runs everything.
if we integrate this into the watch flag it would make development so much faster.
matanlurey commentedon Jun 27, 2025
This feature is not planned, of course it's great that the community is able to write custom packages.
github-actions commentedon Jul 11, 2025
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.