From 6c81b537c08b540b11d3b82c7ee202b774e5d6c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20A=C4=9Facan?= Date: Mon, 17 Mar 2025 06:34:27 -0700 Subject: [PATCH] Update pkg/README.md with how to add new packages, run tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Idfab3de5ebc07e2acf084de43da02a0bee6851e3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/415863 Commit-Queue: Ömer Ağacan Reviewed-by: Alexander Thomas --- pkg/README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkg/README.md b/pkg/README.md index 1490475b651..377284ca24a 100644 --- a/pkg/README.md +++ b/pkg/README.md @@ -42,3 +42,14 @@ We validate: - that the dependencies listed in the pubspec are used in the package - that all the packages used by the source are listed in the pubspec - that a reference to a pkg/ package is done via a relative path dependency + +# Adding new packages + +Run `gclient sync` to re-generate `.dart_tool/package_config.json` after adding +a new package. + +# Testing packages + +Currently `dart test` can't be used to run the tests, use `test.py` as usual. +E.g. the command `./tools/test.py -n...` runs all tests with prefix +``. \ No newline at end of file