write-sglang-test

Author and register SGLang CI/UT tests using CustomTestCase.

410|14|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/OpenMOSS/MOSS-VL --skill write-sglang-test-openmoss
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-sglang-test
Source: https://github.com/OpenMOSS/MOSS-VL/tree/main/sglang/.claude/skills/write-sglang-test
Command: npx skills add https://github.com/OpenMOSS/MOSS-VL --skill write-sglang-test-openmoss

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides guidance on writing and registering CI/UT tests for SGLang, ensuring consistent test structure and CI integration. Use when creating new tests, adding CI test cases, writing unit tests, or when the user asks to add tests for SGLang features.

Core Features & Use Cases

  • Enforces the use of CustomTestCase to ensure tearDownClass cleanup.
  • Documents where tests should live (test/registered/...) and how to register CI at module level.
  • Details server fixture reuse, mocking strategies, and test placement across unit and integration scopes.
  • Offers templates and examples to accelerate CI workflow adoption.

Quick Start

Create a new test by extending CustomTestCase, place it under test/registered, and register CI at the module level.

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 to ensure proper cleanup after execution?

To write SGLang CI tests with proper cleanup, extend the CustomTestCase base class, which enforces tearDownClass cleanup. This ensures consistent test structure and reliable resource teardown across unit and integration testing scopes.

What is the correct directory structure and registration method for SGLang unit tests?

SGLang unit tests should be placed under the test/registered/ directory. You must register CI test cases at the module level within these files to standardize how SGLang CI and UT tests are authored and discovered.

Can I reuse server fixtures across multiple SGLang integration tests?

Yes, SGLang integration tests support server fixture reuse. The skill provides guidance on mocking strategies and server fixture management to streamline server-based E2E validations and avoid redundant setup overhead.

Does SGLang testing support templates for accelerating CI workflow adoption?

SGLang testing provides templates and examples to accelerate CI workflow adoption. These templates standardize test development, CI integration, and benchmark testing within the SGLang ecosystem for faster implementation.

Why are my SGLang CI tests not being discovered during the CI registration process?

SGLang CI tests may not be discovered if they are not placed in the test/registered/ directory or lack module-level CI registration. Following the standardized test placement and registration rules ensures proper CI integration.