write-sglang-test

Write SGLang CI and unit tests following project conventions.

105|9|Updated Feb 10, 2026
One-click install
npx skills add https://github.com/guqiong96/Lsglang --skill write-sglang-test-guqiong96
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-sglang-test
Source: https://github.com/guqiong96/Lsglang/tree/main/.claude/skills/write-sglang-test
Command: npx skills add https://github.com/guqiong96/Lsglang --skill write-sglang-test-guqiong96

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide and template for writing robust Continuous Integration (CI) and Unit Tests (UT) for the SGLang project, ensuring code quality and feature stability.

Core Features & Use Cases

  • Standardized Test Writing: Enforces best practices like using CustomTestCase, correct test placement, and server fixture reuse.
  • CI Integration: Guides on registering tests for CI suites and selecting appropriate models for different test scenarios.
  • Use Case: A developer needs to add a new feature to SGLang and wants to write comprehensive tests that will be automatically run as part of the CI pipeline. This Skill provides all the necessary information and code examples to do so efficiently.

Quick Start

Use the write-sglang-test skill to generate a basic functional correctness test for a new SGLang feature using the smallest model.

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 unit tests for SGLang features?

To write SGLang unit tests, use the `CustomTestCase` structure and place files within the test directory. This ensures your tests adhere to project conventions and maintain code quality.

What is the best way to add a new test case to the SGLang CI pipeline?

Adding SGLang CI test cases requires registering the test for the CI suite and selecting an appropriate model for the scenario. This skill provides templates to generate functional correctness tests efficiently.

How do I use server fixtures when testing SGLang functionalities?

Using server fixtures in SGLang testing involves reusing the fixtures to establish a consistent test environment. This practice enforces standardized test writing and ensures feature stability across runs.

Can I use a small model for SGLang continuous integration tests?

Yes, you can select the smallest model for SGLang continuous integration tests to optimize execution speed. Strategic model selection is guided based on the specific needs of different testing scenarios.

Why does my SGLang test placement matter for project conventions?

SGLang test placement matters because correct file organization within the test directory ensures proper CI integration and discoverability. Adhering to these conventions facilitates automated pipeline execution.