1. 13 Aug, 2019 1 commit
    • David Shuckerow's avatar
      Tests for `flutter test [some_directory]` (#36866) · 9615eb99
      David Shuckerow authored
      * Add a test for a directory instead of a single test.
      
      * Add test data to a child directory to test the command.
      
      * Add test data to a child directory to test the command.
      
      * Add test data to a child directory to test the command.
      
      * Correct test.
      9615eb99
  2. 09 Aug, 2019 2 commits
  3. 01 Aug, 2019 1 commit
    • Tong Mu's avatar
      Split Mouse from Listener (#36217) · 5bb8d8fc
      Tong Mu authored
      - Splits on{Enter,Hover,Exit} from Listener to MouseRegion. Deprecated API is kept for compatibility.
      - Splits on{Enter,Hover,Exit} from RenderPointerListener to RenderMouseRegion.
      5bb8d8fc
  4. 16 Jul, 2019 1 commit
  5. 09 Jul, 2019 1 commit
  6. 28 May, 2019 1 commit
  7. 01 May, 2019 1 commit
  8. 29 Mar, 2019 1 commit
  9. 06 Nov, 2018 2 commits
  10. 04 Oct, 2018 1 commit
  11. 12 Sep, 2018 1 commit
  12. 15 Aug, 2018 1 commit
    • Ian Hickson's avatar
      Shim package:test to avoid matcher issues (#20602) · 686d8f8a
      Ian Hickson authored
      * Upgrade everything except matcher.
      * Roll matcher (and test)
      * Adjust tests that depend on flutter:test directly to depend on a shim
      * Require use of package:test shim and remove other references to package:test
      686d8f8a
  13. 18 Jun, 2018 1 commit
  14. 04 Jun, 2018 1 commit
    • Ian Hickson's avatar
      Be less verbose in the logs. (#17401) · e3427550
      Ian Hickson authored
      Now that we have thousands of tests, it doesn't make sense to display a separate line for each test. The result is just megabytes of logs that you have to scrub through to find error messages.
      e3427550
  15. 29 May, 2018 1 commit
  16. 28 May, 2018 2 commits
  17. 24 May, 2018 2 commits
  18. 20 Apr, 2018 2 commits
  19. 16 Apr, 2018 2 commits
  20. 16 Mar, 2018 1 commit
  21. 10 Feb, 2018 1 commit
  22. 18 Jan, 2018 1 commit
  23. 09 Dec, 2017 1 commit
  24. 22 Oct, 2017 1 commit
  25. 07 Oct, 2017 1 commit
  26. 04 Aug, 2017 1 commit
  27. 30 Jun, 2017 1 commit
  28. 13 Apr, 2017 1 commit
  29. 12 Apr, 2017 1 commit
    • Ian Hickson's avatar
      Fix tests to use Ahem, and helpful changes around that (#9332) · 2a545243
      Ian Hickson authored
      * Fix tests to use Ahem, and helpful changes around that
      
      - Fix fonts that had metric-specific behaviours.
      
      - LiveTestWidgetsFlutterBinding.allowAllFrames has been renamed
        to LiveTestWidgetsFlutterBinding.framePolicy.
      
      - LiveTestWidgetsFlutterBinding now defaults to using a frame policy
        that pumps slightly more frames, to animate the pointer crosshairs.
      
      - Added "flutter run --use-test-fonts" to enable Ahem on devices.
      
      - Changed how idle() works to be more effective in live mode.
      
      - Display the test name in live mode (unless ahem fonts are enabled).
      
      - Added a toString to TextSelectionPoint.
      
      - Style nit fixes.
      
      * Roll engine to get Ahem changes.
      
      * Update tests for dartdoc changes.
      
      * Fix flutter_tools tests
      2a545243
  30. 07 Apr, 2017 1 commit
  31. 03 Feb, 2017 1 commit
  32. 31 Jan, 2017 1 commit
    • Ian Hickson's avatar
      Make tests more resilient to timing. (#7753) · b257f6ea
      Ian Hickson authored
      These tests would fail sometimes when run locally. Since they happen
      to also be the ones that are flaky on bots, maybe there's some
      relationship, even though the failure mode on bots is different. In
      any case, this removes a variable.
      b257f6ea
  33. 14 Jun, 2016 1 commit
    • Ian Hickson's avatar
      Lock flutter tool while updating artifacts (#4476) · f92f71fe
      Ian Hickson authored
      This prevents multiple simultaneous runs of the analyzer from stomping
      over each other (e.g. multiple runs of 'update-packages'). Certain
      long-lived commands (like analyze, run, logs) are exempted once they've
      done enough work to be safe from most stomping action.
      
      This still doesn't make us entirely safe from craziness, e.g. if you're
      half way through an 'update-packages' run and you call 'git pull', who
      knows what state you'll end up in. But there's only so much one can do.
      
      Fixes https://github.com/flutter/flutter/issues/2762
      f92f71fe
  34. 16 May, 2016 1 commit
    • Ian Hickson's avatar
      Make it possible to run tests live on a device (#3936) · 32527017
      Ian Hickson authored
      This makes it possible to substitute 'flutter run' for 'flutter test'
      and actually watch a test run on a device.
      
      For any test that depends on flutter_test:
      
      1. Remove any import of 'package:test/test.dart'.
      
      2. Replace `testWidgets('...', (WidgetTester tester) {`
            with `testWidgets('...', (WidgetTester tester) async {`
      
      3. Add an "await" in front of calls to any of the following:
          * tap()
          * tapAt()
          * fling()
          * flingFrom()
          * scroll()
          * scrollAt()
          * pump()
          * pumpWidget()
      
      4. Replace any calls to `tester.flushMicrotasks()` with calls to
         `await tester.idle()`.
      
      There's a guarding API that you can use, if you have particularly
      complicated tests, to get better error messages. Search for
      TestAsyncUtils.
      32527017