بنقرة واحدة
lookml-language-server-tests
Overview of the folder structure and setup patterns for the LookML Language Server tests
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Overview of the folder structure and setup patterns for the LookML Language Server tests
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | LookML Language Server Tests |
| description | Overview of the folder structure and setup patterns for the LookML Language Server tests |
This skill describes the structure, patterns, and conventions used for the integration tests in the server/src/__tests__ directory of the lookml-language-server project.
The tests in server/src/__tests__ are organized by feature or LookML concept (e.g., dimension_group, extends_view, view_name).
A standard test suite directory typically contains:
index.test.ts: The main Jest test file containing the test definitions (describe, test, beforeAll, etc.).lkml/: A subdirectory containing mock LookML files (.model.lkml, .view.lkml, or .lkml) that represent the test cases for the enclosing test suite.Note: Some complex test suites (like includes) may feature nested subdirectories, each of which then follows this same pattern with its own index.test.ts and lkml/ folder.
Most test suites follow this setup and execution pattern:
WorkspaceModel, often using a mocked connection through the helper function createMockConnection() (imported from ../utils.ts or similar).lkml/ directory are loaded and parsed into the model using workspaceModel.parseFiles({ source: examplePath, reset: true }).DiagnosticsProvider is instantiated. The contents of the LookML file are read into a TextDocument (from vscode-languageserver-textdocument) and validated via diagnosticsProvider.validateDocument(document).expect assertions to verify:
workspaceModel.getView(), workspaceModel.getTableFields()).