-
-
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
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
commit e3209acb2afe5d6879528629ba2568e3e700db53
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| @suite=$$(echo "browser-integration-tests\nnode-integration-tests\nnode-core-integration-tests\ne2e-tests" | \ | ||
|
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 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
|
cursor[bot] marked this conversation as resolved.
Outdated
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.