Programowanie · Testowanie
cmux-testing
/cmux-testing
Dobiera zakresową weryfikację cmux, pisze testy zachowania i sprawdza cele testów Swift oraz ich podpięcie w projekcie.
Dla kogo
- Autor
- legotec73 ↗
- Repozytorium
- CMUX ↗
- Licencja
- GPL-3.0
- Ostatnia zmiana repozytorium
- 03.10.2026
Ocena i bezpieczeństwo
90/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
- Pliki w paczce
- 6
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Przestarzałość
Brak sygnałów. Repozytorium zmienione 03.10.2026, bez odwołań do wycofanych modeli i API.
Licencja
GPL-3.0, otwarta.
Co robi i kiedy
Dobiera zakresową weryfikację cmux, pisze testy zachowania i sprawdza cele testów Swift oraz ich podpięcie w projekcie.
Oryginalny opis (EN)
Choose scoped cmux verification, add behavioral tests, and validate Swift test targets and wiring. Use when adding tests or deciding what local/CI evidence a change needs.
Jak działa
- Choose the first check
- Reproduce and repair
- Test wiring
- Test quality
- Swift tests
- Native test evidence
- PR CI labels
Sekcje z nagłówków SKILL.md, w oryginale · 86 linii, 587 słów
Podgląd SKILL.md
--- name: cmux-testing description: "Choose scoped cmux verification, add behavioral tests, and validate Swift test targets and wiring. Use when adding tests or deciding what local/CI evidence a change needs." --- # cmux Testing ## Choose the first check Run repository commands only from a [trusted checkout](../../docs/contributor-verification.md#trust-boundary); even `verify-local.py --help` and `--list` load repository code. | Task | Command | | --- | --- | | Choose checks and parse changed Swift | `python3 scripts/verify-local.py` | | Run the full CI static recipe | `python3 scripts/verify-local.py --all` | | Parse current Swift edits | `python3 scripts/verify-local.py --only swift-syntax --swift-changed` | | Compile app package tests | `swift build --build-tests` in `Packages/macOS/CmuxNext` | | Run one app module's tests | `swift test --filter <Module>Tests` in `Packages/macOS/CmuxNext` | | Merge-gate source rules for the app | `scripts/cmux-next/check-no-godfiles.sh`, `scripts/cmux-next/check-concurrency.sh` | Add a base ref after `--swift-changed` to include committed changes. Use `--list` to find other checks and `--help` for options. Parsing checks syntax; it doesn't typecheck or run tests. Read the [command guide](../../docs/verification-receipts.md) for piped paths or JSON receipts. Use the [validation guide](references/local-vs-ci-validation.md) to choose package, native, web or runtime checks. Docs and portable tooling use their scoped checks. ## Reproduce and repair Keep a focused command that fails on the reported symptom, then rerun it after the repair. Setup failures and zero executed tests don't demonstrate the bug. Exercise one behavior at a time so a failure identifies what needs fixing. Keep two commits: first the failing behavioral regression, then the fix. Run the same focused command on both and record the commit SHAs, the expected failure and the passing result. A setup failure or zero executed tests is not regression proof. When the proof is available locally, push both commits together after the fix passes; a separate hosted CI run on the deliberately broken intermediate commit is unnecessary. If the failure only reproduces in CI, use that lane and keep its receipts. Required CI and review still apply to the final pushed head. ## Test wiring App tests live in `Packages/macOS/CmuxNext/Tests/<Module>Tests`; SwiftPM discovers them, so no project wiring is needed. The `cmux` CLI is the cmux-tui Rust binary (plans/cmux-next/cli.md); its tests live in `cmux-tui/` and run with cargo on a Blacksmith Testbox or in CI. Maintainers never run cargo on the local Mac; outside contributors, who cannot dispatch hosted verification, run focused tests locally as described in `cmux-tui/AGENTS.md`. `swift test` never launches `cmux DEV`. Daemon-backed suites start `cmux-tui` hosts: check that no `__terminal-host` processes leak after a run. ## Test quality - Exercise observable behavior through unit, integration, CLI or end-to-end paths. - Do not assert source snippets, signatures, AST shape or metadata keys solely to mirror implementation. For metadata behavior, inspect the produced artifact or execute the code that consumes it. - Add a small runtime harness when needed; skip a fake regression test if there is no meaningful behavioral oracle and explain the limit. See [regression and quality](references/regression-and-quality.md) for the judgment call. ## Swift tests Swift unit/integration targets use Swift Testing (`import Testing`, `@Test`, `@Suite`, `#expect`, `#require`). Portable Python/shell guards retain their existing frameworks. New Swift package test targets start on Swift Testing. Prefer parameterized tests for repeated cases and tags for selection. Use `.serialized` for suites that require ordering, not locks or sleeps. Migrate an existing XCTest file only when an edit already crosses it; see [the migration mapping](references/swift-testing-migration.md). ## Native test evidence An app build does not compile test targets. Package/refactor and public API changes need the relevant test target compiled, then the selected tests actually executed. Follow [build-for-testing and execution guidance](references/local-vs-ci-validation.md); report skipped/unsupported checks explicitly. ## PR CI labels `full-ci` is not a review or merge requirement; see [PR CI coverage](references/pr-ci-coverage.md) before adding either.
Pliki w paczce (6)
- SKILL.md 4 KB
- agents/openai.yaml 1 KB
- references/local-vs-ci-validation.md 3 KB
- references/pr-ci-coverage.md 1 KB
- references/regression-and-quality.md 1 KB
- references/swift-testing-migration.md 1 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · legotec73/CMUX | 90 | GPL-3.0 |
| manaflow-ai/cmux | 90 | GPL-3.0 |
| xhqing/cmux | 90 | GPL-3.0 |
Migawka bazy z 13.11.2026 · wersja paczki 55c84356d4b0 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100swift-test-scaffold
Dodaje testy Swift: tworzy cele testowe, szkielet testów ViewModel i usług oraz dobiera Swift Testing zamiast XCTest. - 90cmux-next-feature
Zasady stałe dla każdej funkcji cmux-next: interfejs, ustawienia, panele, operacje backendu i zdolności agentów, przy planowaniu i przeglądzie. - 95cmux-browser
Automatyzuje przeglądarkę cmux: otwiera strony, czyta ich stan i wyciąga dane bez przejmowania fokusu. - 100cmux-sidebar-builder
Buduje, sprawdza i poprawia własne widoki paska bocznego cmux za pomocą interpretera w stylu SwiftUI, w tym pliki ~/.config/cmux/sidebars/*.swift i podglądy w selektorze paska. - 100worktree-cmux-workspace
Otwiera worktree gita w nowym workspace cmux, gdy trzeba oddzielnego okna zamiast podziału bieżącego ekranu. - 100cmux-settings
Wyświetla i edytuje ustawienia cmux w ~/.config/cmux/cmux.json: wygląd, pasek boczny, powiadomienia, automatyzację, przeglądarkę i skróty, z walidacją pliku.