mirror of
https://github.com/kbwo/testing-language-server.git
synced 2025-07-24 19:23:43 +00:00
1.7 KiB
1.7 KiB
Adapter Specifications
This document outlines the command specifications.
Commands
These commands must be implemented by the adapter.
- discover: Initiates the discovery process.
- run-file-test: Executes tests on specified files.
- detect-workspace: Identifies the workspace based on provided parameters.
discover
Arguments
file_paths
: A list of file paths to be processed.
Stdout
Returns a JSON array of discovered items. Each item is a JSON object containing:
path
: String representing the file path.tests
: Array of test items, where each test item is a JSON object including:
run-file-test
Arguments
file_paths
: A list of file paths to be tested.workspace
: The workspace identifier where the tests will be executed.
Stdout
Returns a JSON array of test results. Each result is a JSON object containing:
path
: String representing the file path.diagnostics
: Array of Diagnostic objects.
detect-workspace
Arguments
file_paths
: A list of file paths to identify the workspace.
Stdout
Returns a JSON object where:
- Keys are strings representing workspace file paths.
- Values are arrays of strings representing file paths associated with each workspace.