Skip to content

Support flutter test on windows #8516

Closed

Description

@goderbauer

flutter test should be supported on Windows; it's our core tool for unit testing.

This requires porting sky_shell to Windows.

Activity

  1. modified the milestones: , 2: Make Early Adopters happy on Mar 31, 2017
  2. removed their assignment
    on Apr 5, 2017
  3. simonegiacomelli commented on May 7, 2017

    @simonegiacomelli

    Just bumped into this... It would be useful to me.

  4. added
    toolAffects the "flutter" command-line tool. See also t: labels.
    a: tests"flutter test", flutter_test, or one of our tests
    on Jun 6, 2017
  5. mit-mit commented on Jun 6, 2017

    @mit-mit
    Member

    To "cast a vote" for this, please hit "thumbs up" on the top-most comment (the one by goderbauer) of this bug.

  6. eseidelGoogle commented on Jun 27, 2017

    @eseidelGoogle
    Contributor

    @bkonyi expressed some interest in looking at this.

  7. self-assigned this
    on Jun 27, 2017
  8. mit-mit commented on Jun 28, 2017

    @mit-mit
    Member

    @bkonyi great to hear! cc @devoncarew

  9. ride4sun commented on Jul 18, 2017

    @ride4sun

    @bkonyi @eseidel Any update when this will be available? I really think this should be available on Windows. Is there a workaround besides going to Linux.

  10. bkonyi commented on Jul 18, 2017

    @bkonyi
    Contributor

    @ride4sun I'm currently working on this, but I'm not sure how long it will take to get done so I don't want to make any promises as to when it will be available. However, I am making good progress and will post updates when I have something to share, hopefully in the next week or two.

  11. 4 remaining items

  12. Hixie commented on Aug 17, 2017

    @Hixie
    Contributor

    We hope to have this done in less than a year, but probably more than weeks.

  13. Hixie commented on Aug 17, 2017

    @Hixie
    Contributor

    (Having said that, that's just a guess. See https://en.wikipedia.org/wiki/Forward-looking_statement for why we can't really give more specific estimates.)

  14. JFixby commented on Aug 31, 2017

    @JFixby
    No description provided.
  15. anaisbetts commented on Oct 4, 2017

    @anaisbetts
    Contributor

    A short-term workaround for this issue might be to do enough hax to get Flutter working under Windows Subsystem for Linux (aka "Bash for Windows"), this might be as simple as a few script fixups - as it stands, the initial run of flutter doctor seems to hang on "Building Flutter tool..." (pub.dart.snapshot upgrade).

  16. Hixie commented on Oct 5, 2017

    @Hixie
    Contributor

    On Windows, use the Powershell script rather than the bash script to bootstrap the flutter tool.
    That's orthogonal to this issue, though, which is that we haven't ported the (C++) headless engine to Windows.

  17. anaisbetts commented on Oct 6, 2017

    @anaisbetts
    Contributor

    @Hixie I think you misunderstand - WSL is a full Linux environment on Windows, it natively runs ELF executables (i.e. if you build a Debian package in WSL, you can copy it byte-for-byte to a Linux box and it runs). You would not need to port the headless engine to Windows, you would run the Linux engine, possibly under something like xvfb-run, which also executes on WSL.

  18. Hixie commented on Oct 6, 2017

    @Hixie
    Contributor

    Ah, I see what you mean. Sure, that's one option. This bug is really about doing the actual port though.

  19. Skylled commented on Nov 17, 2017

    @Skylled

    Any updates on this? Most contributions require writing a test, and without the ability to run them on Windows I'm flying blind.

  20. bkonyi commented on Nov 17, 2017

    @bkonyi
    Contributor

    @Skylled this is still a work in progress, but I've just recently gotten flutter_tester compiling and running on Windows. There's a bit of refactoring and cleanup work that still needs to be done, including some potential VM bugs that need to be fixed. I'm always hesitant to give timelines when I don't know the full scope of the bugs I'm seeing, but this issue should be resolved sooner than later.

  21. bkonyi commented on Nov 29, 2017

    @bkonyi
    Contributor

    Quick update: I've started landing the changes needed to get flutter_tester working for Windows, but there are still some bugs that I need to investigate, so I won't be pushing all the changes to master just yet. If these aren't trivial bugs, I'll upload the changes with a temporary workaround on to a separate branch or put the binary somewhere for people who need this ASAP.

  22. bkonyi commented on Dec 11, 2017

    @bkonyi
    Contributor

    As of PR #13459, flutter test should be functional on Windows. Checkout master, delete %FLUTTER_PROJECT_LOCATION%\bin\cache\, and run flutter doctor to pull the new binaries to your machine.

  23. github-actions commented on Sep 4, 2021

    @github-actions

    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.

  24. locked as resolved and limited conversation to collaborators on Sep 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

a: tests"flutter test", flutter_test, or one of our testsplatform-windowsBuilding on or for Windows specificallytoolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions