Skip to content
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

Resolve test items with server request #3186

Merged
merged 2 commits into from
Feb 13, 2025

Conversation

vinistock
Copy link
Member

@vinistock vinistock commented Feb 12, 2025

Motivation

Closes #3173

Start firing our new custom request to discover which tests are available in a given file.

Implementation

We fire the request and then recursively add test items to their respective collections. If a document is saved, we check to see if we created a test item for it and then we clear its children (the tests defined inside of the file) and re-trigger the request.

I chose to use on save because on change would put a lot of pressure on the server.

Automated Tests

Added tests.

Copy link
Member Author

vinistock commented Feb 12, 2025


How to use the Graphite Merge Queue

Add the label graphite-merge to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vinistock vinistock self-assigned this Feb 12, 2025
@vinistock vinistock added enhancement New feature or request vscode This pull request should be included in the VS Code extension's release notes labels Feb 12, 2025
@vinistock vinistock force-pushed the 02-11-resolve_test_items_with_server_request branch from 2c157b1 to 90dcc46 Compare February 12, 2025 15:18
@vinistock vinistock marked this pull request as ready for review February 12, 2025 15:20
@vinistock vinistock requested a review from a team as a code owner February 12, 2025 15:20
@vinistock vinistock force-pushed the 01-31-add_discover_tests_custom_request branch from 7676523 to 1170bf3 Compare February 12, 2025 16:54
@vinistock vinistock force-pushed the 02-11-resolve_test_items_with_server_request branch from 90dcc46 to f655e87 Compare February 12, 2025 16:55
@vinistock vinistock force-pushed the 01-31-add_discover_tests_custom_request branch from 1170bf3 to 4760446 Compare February 12, 2025 18:48
@vinistock vinistock force-pushed the 02-11-resolve_test_items_with_server_request branch from f655e87 to a9c25ec Compare February 12, 2025 18:48
@vinistock vinistock requested a review from andyw8 February 12, 2025 18:49
@vinistock vinistock force-pushed the 01-31-add_discover_tests_custom_request branch from 4760446 to 8f68f57 Compare February 12, 2025 21:32
@vinistock vinistock force-pushed the 02-11-resolve_test_items_with_server_request branch from a9c25ec to df362b5 Compare February 12, 2025 21:32
@vinistock vinistock force-pushed the 02-11-resolve_test_items_with_server_request branch from df362b5 to 02f1612 Compare February 13, 2025 14:25
@vinistock vinistock force-pushed the 01-31-add_discover_tests_custom_request branch 2 times, most recently from 8dcf69e to f4582ce Compare February 13, 2025 15:42
@vinistock vinistock force-pushed the 02-11-resolve_test_items_with_server_request branch from 02f1612 to 1743447 Compare February 13, 2025 15:42
@vinistock vinistock force-pushed the 01-31-add_discover_tests_custom_request branch from f4582ce to dcd90c6 Compare February 13, 2025 17:48
@vinistock vinistock force-pushed the 02-11-resolve_test_items_with_server_request branch 2 times, most recently from 44e772a to d7d005f Compare February 13, 2025 18:55
@vinistock vinistock force-pushed the 01-31-add_discover_tests_custom_request branch from dcd90c6 to 4e5dceb Compare February 13, 2025 18:55
Copy link

graphite-app bot commented Feb 13, 2025

Merge activity

### Motivation

Closes #3171

Add a new custom request to discover tests in a specific document. This request will instantiate all listeners and collect all of the discovered groups and examples as test items for the editor.

### Implementation

- Created the new request
- Implement a listener dedicated to the test style syntax only (spec will be a separate listener)
- Ensured to use ancestor linearization to determine the test framework

### Automated Tests

Added tests.
### Motivation

Closes #3173

Start firing our new custom request to discover which tests are available in a given file.

### Implementation

We fire the request and then recursively add test items to their respective collections. If a document is saved, we check to see if we created a test item for it and then we clear its children (the tests defined inside of the file) and re-trigger the request.

I chose to use on save because on change would put a lot of pressure on the server.

### Automated Tests

Added tests.
@graphite-app graphite-app bot force-pushed the 01-31-add_discover_tests_custom_request branch from 4e5dceb to 7d66850 Compare February 13, 2025 19:33
@graphite-app graphite-app bot force-pushed the 02-11-resolve_test_items_with_server_request branch from d7d005f to fdaf468 Compare February 13, 2025 19:34
Base automatically changed from 01-31-add_discover_tests_custom_request to main February 13, 2025 20:00
@vinistock vinistock merged commit e02a704 into main Feb 13, 2025
41 of 42 checks passed
@vinistock vinistock deleted the 02-11-resolve_test_items_with_server_request branch February 13, 2025 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request vscode This pull request should be included in the VS Code extension's release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hook the client side and start discovering tests when a file is expanded
3 participants