Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
chore: Add Makefiles for dev-packages to make it convenient to run tests
You can now run specific e2e, browser-integration, node-integration and
node-core-integration tests by using `make` inside `dev-packages`.

Select the suite and you'll be given a fuzzy search prompt that you can type in
to filter or use arrow keys to select the test you want to run.

This is for running specific tests/test-apps.
  • Loading branch information
andreiborza committed Feb 6, 2026
commit e3209acb2afe5d6879528629ba2568e3e700db53
25 changes: 25 additions & 0 deletions dev-packages/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
.PHONY: run browser node node-core e2e

# Fuzzy-pick which test suite to run, then fuzzy-pick a test within it
run:
@if ! command -v fzf &> /dev/null; then \
echo "Error: fzf is required. Install with: brew install fzf"; \
exit 1; \
fi
Comment thread
cursor[bot] marked this conversation as resolved.
@suite=$$(echo "browser-integration-tests\nnode-integration-tests\nnode-core-integration-tests\ne2e-tests" | \
Comment thread
cursor[bot] marked this conversation as resolved.
Outdated
fzf --height=10 --layout=reverse --border=rounded --margin=1.5% \
--color=dark --prompt="run test suite: "); \
[ -n "$$suite" ] && $(MAKE) -C $$suite run

# Run directly in a specific suite
browser:
@$(MAKE) -C browser-integration-tests run

node:
@$(MAKE) -C node-integration-tests run

node-core:
@$(MAKE) -C node-core-integration-tests run

e2e:
@$(MAKE) -C e2e-tests run
9 changes: 9 additions & 0 deletions dev-packages/browser-integration-tests/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.PHONY: run

run:
@if ! command -v fzf &> /dev/null; then \
echo "Error: fzf is required. Install with: brew install fzf"; \
exit 1; \
fi
@find . -name test.ts | sed -e 's|^\./suites/||' -e 's|/test\.ts$$||' | fzf --height=10 --layout=reverse --border=rounded --margin=1.5% --color=dark --prompt="yarn test " | xargs -r yarn test
Comment thread
cursor[bot] marked this conversation as resolved.
Outdated

9 changes: 9 additions & 0 deletions dev-packages/node-core-integration-tests/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.PHONY: run

run:
@if ! command -v fzf &> /dev/null; then \
echo "Error: fzf is required. Install with: brew install fzf"; \
exit 1; \
fi
@find . -name test.ts | sed -e 's|^\./suites/||' -e 's|/test\.ts$$||' | fzf --height=10 --layout=reverse --border=rounded --margin=1.5% --color=dark --prompt="yarn test " | xargs -r yarn test

9 changes: 9 additions & 0 deletions dev-packages/node-integration-tests/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.PHONY: run

run:
@if ! command -v fzf &> /dev/null; then \
echo "Error: fzf is required. Install with: brew install fzf"; \
exit 1; \
fi
@find . -name test.ts | sed -e 's|^\./suites/||' -e 's|/test\.ts$$||' | fzf --height=10 --layout=reverse --border=rounded --margin=1.5% --color=dark --prompt="yarn test " | xargs -r yarn test

Loading