Skip to content
Snippets Groups Projects
  1. Feb 05, 2020
    • Nate Bosch's avatar
      Remove arguments to runInIsolate utility (#1169) · 26ba571a
      Nate Bosch authored
      The `resolver` argument was only used from external packages which can
      be migrated off this utility.
      
      The `checked` argument was only used to allow `spawnHybrid` APIs to run
      code without asserts, but we want all test code to run with asserts,
      including server side utilities.
      26ba571a
  2. Feb 04, 2020
  3. Feb 01, 2020
    • Nate Bosch's avatar
      Avoid unhandled errors in spawnHybridUri (#1162) · 658e47e9
      Nate Bosch authored
      Closes #1007
      Closes #1008
      
      We already forward errors across the `StreamChannel` so it isn't
      particularly useful to also have them printed to the output on the VM
      hosting the runner.
      
      We know that `listen` is only ever called in an Isolate that was spawned
      from the runner and the `zone` is the root zone. The uncaught error
      handler on the root zone will print the error and then kill the isolate,
      we jump straight to killing the isolate instead. This Isolate is only
      ever spawned without an `onError` handler that would override the
      default.
      658e47e9
  4. Jan 29, 2020
    • Jacob MacDonald's avatar
      Shared loading and running pool (#1161) · a5addd37
      Jacob MacDonald authored
      Change the behavior of the concurrency setting so that loading and running
        don't have separate pools.
        * The loading and running of a test are now done with the same resource, and
          the concurrency setting uniformly affects each. With `-j1` only a single
          test will ever be loaded at a time.
        * Previously the loading pool was 2x larger than the actual concurrency
          setting which could cause flaky tests due to tests being loaded while
          other tests were running, even with `-j1`.
      a5addd37
  5. Jan 27, 2020
  6. Jan 23, 2020
  7. Jan 22, 2020
  8. Jan 21, 2020
  9. Jan 19, 2020
  10. Jan 09, 2020
    • Nate Bosch's avatar
      Prepare to publish test_core and test (#1138) · e5d14b36
      Nate Bosch authored
      - Bump to feature version change in `test`.
      - Drop `-dev` from pubspecs.
      - Pin to latest `test_core` from `test`.
      2 tags
      e5d14b36
    • Evan Weible's avatar
      Add file-based reporter support (#1129) · b5bd8b3b
      Evan Weible authored
      Add support for writing any reporter output to a file in addition to the
      reporter on `stdout`. The `json` reporter is the primary use case.
      Adds a `--file-reporter` CLI argument, and `file_reporters` yaml config
      option.
      
      - Add a `MultiplexingReporter` to allow wiring up multiple reporters to
        listen at once.
      - Plumb through the configuration mapping a reporter to a file path.
      - Instantiate each file reporter with a sink from the file instead of
        the normal `stdout`.
      b5bd8b3b
    • Nate Bosch's avatar
      Remove stale or inactionable TODO comments (#1135) · cd03013e
      Nate Bosch authored
      Remove TODO comments waiting for things that will never change or that
      we don't intend to take action on.
      
      - https://github.com/dart-lang/sdk/issues/22977 is closed as not
        planned.
      - Dart 2 does not support importing `dart:io` in cross platform code.
      - Setting the exit code is not supported on web.
      - We plan on keeping `executable.dart` under lib to allow reuse from
        other packages internally.
      - We don't plan on trying to support `spawnHybridUri` outside of the
        test runner.
      - `executable.main` is now declared to return a `Future`.
      - We don't intend to take a dependency on `json_schema`.
      cd03013e
  11. Jan 07, 2020
    • Dan Field's avatar
      Drop pedantic dependency (#1131) · eb8aa6b5
      Dan Field authored
      Flutter pins package dependencies, including all transitive dependencies.
      
      Because test_api depends on pedantic, Flutter pins that dependency.
      
      However, pedantic is only depended on for the `unawaited` function, which is a one-line piece of code.
      
      This will enable resolution of https://github.com/flutter/flutter/issues/48246 without requiring Flutter to unpin its dependencies, and with a very small overhead on test_api to not re-import pedantic :)  This helps downstream consumers who want to depend on the package for the actual analysis options files.
      
      Also related: https://github.com/dart-lang/pedantic/issues/46
      eb8aa6b5
  12. Jan 06, 2020
  13. Nov 14, 2019
  14. Nov 07, 2019
  15. Oct 31, 2019
  16. Oct 25, 2019
    • Nate Bosch's avatar
      Switch from IOSink to StringSink (#1105) · f515fa8e
      Nate Bosch authored
      Towards #1100
      
      The ExpandedReporter needs to work on the web platform. It worked before
      because it only used `print` which works everywhere.
      
      - Change the argument to `StringSink` which can be supported on every
        platform.
      - Remove the `dart:io` import from the expanded reporter.
      - Make the `sink` argument non-optional for the expanded reporter.
      - Add a `PrintSink` implementation that buffers writes until the content
        ends with a newline and then calls `print`.
      f515fa8e
  17. Oct 24, 2019
  18. Oct 23, 2019
  19. Oct 16, 2019
  20. Oct 09, 2019
    • Gary Roumanis's avatar
      Conditionally import coverage logic (#1091) · ee7c02be
      Gary Roumanis authored
      * Conditionally import coverage logic
      2 tags
      ee7c02be
    • willdrach-wk's avatar
      Implement VM coverage gathering (#1088) · 08bf237b
      willdrach-wk authored
      Open to feedback on this. Here's how it works at the moment:
      
      There's a new `--coverage` option that you can use to specify the output directory for your coverage. It will create a new output directory if one doesn't already exist.
      
      The tests are run through the engine, and then get spit out to a coverage helper function. That coverage helper function:
      **A)** Checks if it's a VM suite
      **B)** Gathers coverage if it is
      **C)** Outputs coverage to `${suite path}.vm.json`
      
      So, for example, when I run:
      ```bash
      pub run test --coverage hello_world test/vm/simple_repo_test.dart
      ```
      
      A new file gets added at `hello_world/test/vm/simple_repo_test.dart.vm.json` with the coverage results!
      08bf237b
  21. Sep 24, 2019
  22. Sep 23, 2019
  23. Sep 17, 2019
  24. Aug 21, 2019
  25. Aug 16, 2019
  26. Jul 29, 2019
    • Nate Bosch's avatar
      Drop dependency on pub_semver (#1057) · 6b30045f
      Nate Bosch authored
      This had been used to detect feature support so that the package could
      have a wider SDK constraint and have enhanced features for newer SDKs.
      Drop the dependency and code checking the SDK version because:
      
      - We now typically bump the SDK constraint rather than support multiple
        code paths.
      - The remaining usage was for checking for DDC support in `pub serve`
        which doesn't exist anymore - we haven't yet deleted the tests or
        migrated them to use `build_runner serve`. This test and references to
        the old approach with both compilers is retained to make it clear what
        should be tested when we get around to migrating it.
      6b30045f
    • Kevin Moore's avatar
      test_core: migrate to pkg:vm_service (#1055) · 77e09b4e
      Kevin Moore authored
      pkg:vm_service_lib is discontinued
      
      Related to https://github.com/dart-lang/vm_service_drivers/issues/257
      77e09b4e
  27. Jul 08, 2019
  28. Jun 03, 2019
  29. May 08, 2019
  30. Apr 30, 2019
  31. Apr 09, 2019
    • Nate Bosch's avatar
      Avoid dart:isolate import from test code (#1011) · fadf58ce
      Nate Bosch authored
      The default reporter is imported from `package:test/test.dart` and so it
      is used on all platforms.
      
      This change may mean that some unnecessary stack traces are printed,
      which is safe and only slightly degrades UX.
      fadf58ce
  32. Apr 08, 2019
  33. Mar 27, 2019
Loading