commit | 9e3072e157c8d378e97a90ed06384ac341fbafb6 | [log] [tgz] |
---|---|---|
author | Danny Tuppeny <danny@tuppeny.com> | Thu Feb 09 20:45:20 2023 +0000 |
committer | GitHub <noreply@github.com> | Thu Feb 09 12:45:20 2023 -0800 |
tree | 794809078fea3b926c8ef6db265e239c1e32186f | |
parent | 07380027c7e03dff794a5fa2b71a5ceb7bf1b717 [diff] |
Handle absolute paths on Windows (#1923) Since the latest `package:test` rolled into the SDK, some DAP tests started failing to run tests with `dart test`. They use absolute paths on Windows: https://github.com/dart-lang/sdk/issues/51348 This updates the code to check if it looks like we are getting a path that starts with drive letter, and in that case prepend it with file:/// before parsing. I also made the logic for stripping out a leading / more robust (only do it if it really looks like a drive letter path). @jakemac53
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 |