write-sglang-test

Write and register SGLang CI/UT tests with standardized patterns.

9|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/Fridge003/sglang-dev-tools --skill write-sglang-test-fridge003
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-sglang-test
Source: https://github.com/Fridge003/sglang-dev-tools/tree/main/ai-wheels/.claude/skills/write-sglang-test
Command: npx skills add https://github.com/Fridge003/sglang-dev-tools --skill write-sglang-test-fridge003

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guides developers to write, register, and maintain SGLang CI/UT tests with consistent patterns to reduce CI failures and onboarding time.

Core Features & Use Cases

  • CustomTestCase usage to ensure teardown runs reliably across tests.
  • CI registration helpers to map tests to per-commit and nightly suites.
  • Server fixtures, model selection, mocks, and test-placement guidance for scalable test suites.
  • Always read test/README.md for the full CI layout, how to run tests, and extra tips.

Quick Start

Create a new test file under test/registered/ and register it with the appropriate CI entry point using the provided register_*_ci function.

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 unit tests that register automatically in CI?

SGLang unit tests register automatically in CI by using the register_*_ci function to map tests to per-commit and nightly suites. Place test files under test/registered/ and apply the provided registration helpers for standardized, reproducible CI runs.

Why does my SGLang test teardown fail to execute reliably?

SGLang test teardown fails to execute reliably when not using the CustomTestCase base class. Enforcing CustomTestCase ensures proper tearDownClass handling, guaranteeing that teardown processes run consistently across all test cases.

How do I set up server fixtures for SGLang CI tests?

Set up server fixtures for SGLang CI tests by applying documented server fixture patterns within your test files. This approach, combined with proper model selection and mock testing, ensures scalable and reproducible CI runs across test suites.

What is the correct test placement directory for SGLang CI registrations?

The correct test placement directory for SGLang CI registrations is test/registered/. Creating new test files under this category and mapping them with register_*_ci functions ensures proper integration into the per-commit and nightly CI suites.

Do I need to read documentation before creating SGLang CI tests?

You need to read test/README.md before creating SGLang CI tests to understand the full CI layout and execution instructions. This documentation provides essential tips and guidance for running tests and maintaining scalable test suites.

Can I use mock testing for scalable SGLang test suites?

You can use mock testing for scalable SGLang test suites by applying the provided mock testing patterns alongside server fixtures and model selection. This combination ensures reproducible CI runs and reduces onboarding time for new developers.