-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
chore: Add Makefiles for dev-packages to make it convenient to run tests #19203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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 2>&1; then \ | ||
| echo "Error: fzf is required. Install with: brew install fzf"; \ | ||
| exit 1; \ | ||
| fi | ||
| @suite=$$(printf '%s\n' browser-integration-tests node-integration-tests node-core-integration-tests e2e-tests | \ | ||
| 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 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| .PHONY: run | ||
|
|
||
| run: | ||
| @if ! command -v fzf > /dev/null 2>&1; 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 yarn test | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,11 @@ | ||
| .PHONY: run list | ||
|
|
||
| run: | ||
| @if ! command -v fzf &> /dev/null; then \ | ||
| @if ! command -v fzf > /dev/null 2>&1; 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 | ||
| @ls test-applications | fzf --height=10 --layout=reverse --border=rounded --margin=1.5% --color=dark --prompt="yarn test:run " | xargs yarn test:run | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Canceling the Suggested FixAdd the Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It does not run all the tests, fzf cancels out. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing xargs guard runs all tests on cancelMedium Severity Removing Additional Locations (2) |
||
|
|
||
| list: | ||
| @ls test-applications | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| .PHONY: run | ||
|
|
||
| run: | ||
| @if ! command -v fzf > /dev/null 2>&1; 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 yarn test | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| .PHONY: run | ||
|
|
||
| run: | ||
| @if ! command -v fzf > /dev/null 2>&1; 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 yarn test | ||
|
|


Uh oh!
There was an error while loading. Please reload this page.