write-sglang-test

Write and register SGLang CI/UT tests with CustomTestCase and register_*_ci calls.

1|Updated May 8, 2026
One-click install
npx skills add https://github.com/dyyoungg/sglang-dev --skill write-sglang-test-dyyoungg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-sglang-test
Source: https://github.com/dyyoungg/sglang-dev/tree/main/.claude/skills/write-sglang-test
Command: npx skills add https://github.com/dyyoungg/sglang-dev --skill write-sglang-test-dyyoungg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams write and register tests for SGLang's CI/UT pipelines, ensuring consistent structures and test coverage across the project.

Core Features & Use Cases

  • Standardizes test creation with CustomTestCase, CI registration calls, and server fixtures.
  • Documents repository guidelines for placing unit tests, E2E tests, and server-based tests.
  • Provides templates and best practices for test placement, naming, and workflow integration.

Quick Start

Create a new CI/UT test file that uses CustomTestCase and register it at module scope with the appropriate register_*_ci call.

Frequently Asked Questions about write-sglang-test

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write SGLang CI tests using CustomTestCase?

SGLang CI tests use CustomTestCase to standardize test creation. You register the test at module scope using the appropriate register_*_ci call, ensuring consistent test layouts and proper tooling coverage across the SGLang repository.

How do I register E2E tests for SGLang CI pipelines?

To register E2E tests for SGLang CI pipelines, place the test files under the test directory and use register_*_ci calls at module scope. This enforces repository guidelines for test placement and workflow integration.

What are server fixtures in SGLang unit testing?

Server fixtures in SGLang unit testing provide the necessary server environment for test execution. They are integrated into test files alongside model selection configurations to ensure consistent and repeatable server-based testing workflows.

Can I use mock testing with SGLang CustomTestCase workflows?

Yes, mock testing is supported within SGLang CustomTestCase workflows. The skill documents best practices for integrating mock testing alongside server fixtures and model selection to validate test scenarios without full deployment.

What is the correct test placement structure for SGLang repository tests?

The correct test placement structure for SGLang repository tests requires placing unit tests and E2E tests under the designated test directory. All tests must be properly registered with register_*_ci calls to integrate with CI pipelines.

Do I need specific dependencies to run SGLang server-based tests?

SGLang server-based tests require server fixtures and model selection configurations defined within the test files. The testing framework uses CustomTestCase to enforce rules and provide templates, ensuring consistent test layouts without external dependencies.