| commit | 22835e2ec81169a5c05ed1ceb4fd6d0e8f4e87d6 | [log] [tgz] |
|---|---|---|
| author | Nate Bosch <nbosch@google.com> | Fri Sep 13 11:13:20 2024 -0700 |
| committer | GitHub <noreply@github.com> | Fri Sep 13 11:13:20 2024 -0700 |
| tree | f702f4a2eaa8af9ce22b6232da8607eba3ad99bd | |
| parent | 9a2d155b648ecf3c2e979233ee5e94d199a7d6dd [diff] |
Add support for multiple full paths on macos (#2276) We cannot look up multiple basename commands in the system path and the current `macOsExecutable` configuration may have existing uses in `dart_test.yaml` files so it isn't safe to require full paths. Add a separate `macOsAbsolutePaths` configuration to enable internal definitions that check multiple full paths and execute the first one that exists. Add the basename `firefox` as a fallback. Adding that command to the path is one workaround for users with firefox installed in an unexpected location. This is also the only approach that is compatible with mac on GitHub actions using the `setup-firefox` action. There is no support here for `dart_test.yaml`. Users that are configuring an executable for macOS will continue to have support for only a single value, even if they are specifying an absolute path. Tests remain skipped because our mono repo setup does not have a way to include the `setup-firefox` action. --------- Co-authored-by: Jacob MacDonald <jakemac@google.com>
Welcome! package:test is the standard testing library for Dart and Flutter. If you have questions about Dart testing, please see the docs for package:test. package:test_api and package:test_core are implementation details and generally not user-facing.
package:checks is a relatively new library for expressing test expectations. It's a more modern version of package:matcher and features a literate API.
| Package | Description | Version |
|---|---|---|
| checks | A framework for checking values against expectations and building custom expectations. | |
| test | A full featured library for writing and running Dart tests across platforms. | |
| test_api | ||
| test_core |