Files
Danny Tuppeny b0d4ab8ef9 [analysis_server] Move test/integration to integration_test
This was mostly a rename/move of the folder (and the analysis server updated all references), but I also had to:

- add `integration_test/analysis_options.yaml` to import from `../test` to get the same lint ignores
- update paths of exclusions in `verify_sorted_test.dart`

By moving all of the tests that start the server out-of-process out of test, we can:

1. Use "dart test" to just run the faster tests ("dart test test") and get functionality of the pkg:test runner (for example running tests concurrently and JSON output)
2. Allow VS Code to spawn different debug sessions for the "test" and "integration_test" folder, which means we can use a `preLaunchTask` to trigger compilation of the analysis server from source whenever running integration tests (avoiding having to compile manually, or run from source in a way that compiles a new server for each test suite)

Change-Id: I37cc03dc32d08c5b51a2eab79f6338bb079b32ac
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/434801
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2025-06-17 12:54:41 -07:00

2.9 KiB

Checklist to ensure that we have integration test coverage of all analysis server calls. This file is validated by coverage_test.dart.

analysis domain

  • analysis.getErrors
  • analysis.getHover
  • analysis.getImportedElements
  • analysis.getLibraryDependencies (failing - see #29310)
  • analysis.getNavigation (failing - see #28799)
  • analysis.getReachableSources (failing - see #29311)
  • analysis.getSignature
  • analysis.reanalyze
  • analysis.setAnalysisRoots
  • analysis.setGeneralSubscriptions
  • analysis.setPriorityFiles
  • analysis.setSubscriptions
  • analysis.updateContent
  • analysis.updateOptions (failing - see #28800) (deprecated)
  • analysis.analyzedFiles
  • analysis.closingLabels
  • analysis.errors
  • analysis.flushResults
  • analysis.folding
  • analysis.highlights
  • analysis.implemented
  • analysis.invalidate
  • analysis.navigation
  • analysis.occurrences
  • analysis.outline
  • analysis.overrides

completion domain

  • completion.availableSuggestions
  • completion.existingImports
  • completion.getSuggestionDetails
  • completion.getSuggestionDetails2
  • completion.getSuggestions
  • completion.getSuggestions2
  • completion.registerLibraryPaths
  • completion.results
  • completion.setSubscriptions

diagnostic domain

  • diagnostic.getDiagnostics
  • diagnostic.getServerPort

edit domain

  • edit.bulkFixes
  • edit.format
  • edit.formatIfEnabled
  • edit.getAssists
  • edit.getAvailableRefactorings
  • edit.getFixes
  • edit.getPostfixCompletion
  • edit.getRefactoring
  • edit.getStatementCompletion
  • edit.importElements
  • edit.isPostfixCompletionApplicable
  • edit.listPostfixCompletionTemplates
  • edit.sortMembers
  • edit.organizeDirectives

execution domain

  • execution.createContext
  • execution.deleteContext
  • execution.getSuggestions
  • execution.mapUri
  • execution.setSubscriptions
  • execution.launchData

search domain

  • search.findElementReferences
  • search.findMemberDeclarations
  • search.findMemberReferences
  • search.findTopLevelDeclarations
  • search.getElementDeclarations
  • search.getTypeHierarchy
  • search.results

server domain

  • server.getVersion
  • server.shutdown
  • server.setSubscriptions
  • server.connected
  • server.error
  • server.log
  • server.status
  • server.cancelRequest
  • server.setClientCapabilities
  • server.openUrlRequest
  • server.showMessageRequest

analytics domain

  • analytics.isEnabled
  • analytics.enable
  • analytics.sendEvent
  • analytics.sendTiming

flutter domain

  • flutter.getChangeAddForDesignTimeConstructor
  • flutter.setSubscriptions
  • flutter.outline
  • flutter.getWidgetDescription
  • flutter.setWidgetPropertyValue

lsp domain

  • lsp.handle