From 775d766d14045c7c66a9a777825e3ff18b6751e7 Mon Sep 17 00:00:00 2001 From: AN12345 Date: Mon, 21 Nov 2022 20:59:36 -0500 Subject: [PATCH] build: update melos configuration and update targets --- melos.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/melos.yaml b/melos.yaml index fa0becc3..580261a6 100644 --- a/melos.yaml +++ b/melos.yaml @@ -36,6 +36,18 @@ scripts: clean:deep: run: git clean -x -d -f -q description: Clean things very deeply with `git clean`. + + test:selective_unit_test: + run: melos exec --dir-exists="test" -- flutter test --no-pub --coverage + description: Run Flutter tests for a specific package in this project. + select-package: + flutter: true + + test: + run: melos run test:selective_unit_test --no-select + description: Run all Flutter tests in this project. + + gen_coverage: melos exec -- sh "\$MELOS_ROOT_PATH/combine_coverage.sh" && genhtml coverage/lcov.info -o coverage/html # Additional cleanup lifecycle script, executed when `melos clean` is run. postclean: >