From 37d979374df8fdfb5686c4929c158622ad29779b Mon Sep 17 00:00:00 2001 From: Andrei Borza Date: Fri, 23 Jan 2026 12:07:23 +0100 Subject: [PATCH] chore(e2e): Add Makefile to make running specific e2e test apps easier --- dev-packages/e2e-tests/Makefile | 11 +++++++++++ dev-packages/e2e-tests/README.md | 24 ++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 dev-packages/e2e-tests/Makefile diff --git a/dev-packages/e2e-tests/Makefile b/dev-packages/e2e-tests/Makefile new file mode 100644 index 000000000000..3761c715b2d1 --- /dev/null +++ b/dev-packages/e2e-tests/Makefile @@ -0,0 +1,11 @@ +.PHONY: run list + +run: + @if ! command -v fzf &> /dev/null; then \ + echo "Error: fzf is required. Install with: brew install fzf"; \ + exit 1; \ + fi + @ls test-applications | fzf --height=10 --layout=reverse --border=rounded --margin=1.5% --color=dark --prompt="yarn test:run " | xargs -r yarn test:run + +list: + @ls test-applications diff --git a/dev-packages/e2e-tests/README.md b/dev-packages/e2e-tests/README.md index ffe06dd91aaf..23718eed6dde 100644 --- a/dev-packages/e2e-tests/README.md +++ b/dev-packages/e2e-tests/README.md @@ -33,6 +33,30 @@ yarn test:run --variant Variant name matching is case-insensitive and partial. For example, `--variant 13` will match `nextjs-pages-dir (next@13)` if a matching variant is present in the test app's `package.json`. +### Using the Makefile + +Alternatively, you can use the provided Makefile for an interactive test selection experience: + +**Prerequisites**: Install `fzf` with Homebrew: + +```bash +brew install fzf +``` + +**Run tests interactively**: + +```bash +make run +``` + +This will display a fuzzy-finder menu of all available test applications. Select one to run it automatically. + +**List all test applications**: + +```bash +make list +``` + For example, if you have the following variants in your test app's `package.json`: ```json