一键导入
sst-test
Run SST unit tests with pytest. Use when: running tests, checking test coverage, verifying fixes. Triggers: test, pytest, unit test, run tests.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run SST unit tests with pytest. Use when: running tests, checking test coverage, verifying fixes. Triggers: test, pytest, unit test, run tests.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
End-to-end testing for SST against sst-jaffle-shop. Runs unit tests, validate, enrich, extract, generate, and Snowflake verification. Use when: testing SST changes, QA before release, verifying pipeline. Triggers: e2e test, run tests, test sst, qa sst, integration test, full test, test pipeline.
Create a pull request on the SST repo. Use when: opening a PR, creating a pull request, submitting changes. Triggers: open PR, create PR, pull request, submit PR, push and create PR.
Create a GitHub issue on the SST repo. Use when: filing bugs, requesting features, reporting doc issues. Triggers: create issue, file bug, feature request, report issue, open issue, new issue.
Review a pull request on the SST repo. Use when: reviewing PRs, code review, checking PR changes. Triggers: review PR, pull request, code review, PR review.
Run SST validation against a dbt project. Use when: validating semantic models, checking relationships, running sst validate. Triggers: validate, sst validate, check models, relationship errors.
| name | sst-test |
| description | Run SST unit tests with pytest. Use when: running tests, checking test coverage, verifying fixes. Triggers: test, pytest, unit test, run tests. |
Run the SST test suite using pytest.
pip install -e .First, list the user's conda environments to find the one with SST installed:
source "$(conda info --base)/etc/profile.d/conda.sh" && conda env list
⚠️ MANDATORY STOPPING POINT: Present the results to the user and ask which environment has SST installed. Highlight any environments whose names contain "sst" as likely matches. Do NOT proceed until user responds.
Then activate the chosen environment:
source "$(conda info --base)/etc/profile.d/conda.sh" && conda activate <env-name>
cd "$(git rev-parse --show-toplevel)"
python -m pytest tests/unit/ -v
python -m pytest tests/unit/core/validation/test_relationship_validation.py -v
python -m pytest tests/unit/ -v -k "test_unique_key"
python -m pytest tests/unit/ --cov=snowflake_semantic_tools --cov-report=term-missing
⚠️ MANDATORY STOPPING POINT: If tests fail, report failures to the user with error messages before taking any corrective action. Do NOT auto-fix without approval.
tests/
unit/
core/
validation/
test_relationship_validation.py # Relationship rule tests
test_validator.py # Validator integration tests
generation/
test_semantic_view_builder.py # SQL generation tests
parsing/
test_dbt_parser.py # dbt manifest parsing tests
test_*.pytest_*dbt_data dicts with sm_tables and relationship YAMLTest results summary: total collected, passed count, failed count, and error messages for any failures.