Przejdź do treści
Biblioteka skilli
Programowanie · Nauka i wyjaśnianie

guide-swift-testing

/guide-swift-testing

Wyjaśnia wzorce testów w Swift Testing: struktury, potwierdzenia async, testy sparametryzowane, załączniki i typowe błędy agentów.

Repozytorium
apple-skills ↗
Licencja
MIT
Ostatnia zmiana repozytorium
26.09.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
2
Przestarzałość

Brak sygnałów. Repozytorium zmienione 26.09.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Wyjaśnia wzorce testów w Swift Testing: struktury, potwierdzenia async, testy sparametryzowane, załączniki i typowe błędy agentów.

Oryginalny opis (EN)

Swift Testing patterns — structs over classes, async confirmations, parameterized tests, exit tests, attachments, common agent mistakes. Use when writing, reviewing, or migrating Swift Testing code.

Jak działa

  1. Core Instructions
  2. Review Process
  3. References
Sekcje z nagłówków SKILL.md, w oryginale · 34 linii, 233 słów
Podgląd SKILL.md
---
name: guide-swift-testing
description: Swift Testing patterns — structs over classes, async confirmations, parameterized tests, exit tests, attachments, common agent mistakes. Use when writing, reviewing, or migrating Swift Testing code.
type: guide
origin: https://github.com/twostraws/Swift-Testing-Agent-Skill
license: MIT
---

> **Guide Skill** — This is an expert workflow/pattern guide, not API reference documentation.
> Originally from [twostraws/Swift-Testing-Agent-Skill](https://github.com/twostraws/Swift-Testing-Agent-Skill) by Paul Hudson. MIT License.

# Swift Testing Patterns

Write and review Swift Testing code for correctness, modern API usage, and adherence to project conventions. Report only genuine problems — do not nitpick or invent issues.

## Core Instructions

- Target Swift 6.2 or later, using modern Swift concurrency.
- Swift Testing does *not* support UI tests — XCTest must be used there.
- Do not rewrite existing XCTest to Swift Testing unless requested.

## Review Process

1. Ensure tests follow core conventions using `references/core-rules.md`.
2. Validate structure, assertions, dependency injection, and best practices using `references/writing-better-tests.md`.
3. Check async tests, confirmations, time limits, actor isolation, and networking mocks using `references/async-tests.md`.
4. Ensure new features like raw identifiers, exit tests, and attachments are used correctly using `references/new-features.md`.
5. If migrating from XCTest, follow `references/migrating-from-xctest.md`.

If doing partial work, load only the relevant reference files.

## References

| Topic | Reference |
|-------|-----------|
| Structs over classes, `@Suite`, parallel execution, `withKnownIssue`, tags | `references/core-rules.md` |
| Test hygiene, structure, DI, `#expect` vs `#require`, `Issue.record()`, verification methods | `references/writing-better-tests.md` |
| Serialized tests, `confirmation()`, time limits, actor isolation, mocking networking | `references/async-tests.md` |
| Raw identifiers, exit tests, attachments, test scoping traits, range-based confirmations | `references/new-features.md` |
| XCTest-to-Swift Testing conversion, assertion mappings, floating-point tolerance | `references/migrating-from-xctest.md` |
Pliki w paczce (6)
  • SKILL.md 2 KB
  • references/async-tests.md 8 KB
  • references/core-rules.md 4 KB
  • references/migrating-from-xctest.md 2 KB
  • references/new-features.md 10 KB
  • references/writing-better-tests.md 11 KB

Wersje

W bazie nie ma innych skilli o nazwie guide-swift-testing.

Migawka bazy z 13.11.2026 · wersja paczki 81251e5ed48b (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

  • 90swift-testing-code-review
    Przegląda testy Swift Testing pod kątem użycia #expect i #require, testów parametryzowanych, testowania asynchronicznego i organizacji w plikach z import Testing, @Test i @Suite.
  • 90guide-swift-concurrency
    Wyjaśnia wzorce współbieżności w Swift: aktorów, anulowanie zadań, strumienie async, migrację z GCD i typowe błędy.
  • 95swift-testing
    Pomaga pisać i migrować testy w Swift Testing: @Test, @Suite, #expect, testy parametryczne, tagi, XCUITest, mocki, testy snapshotowe, wzorce asynchroniczne i TDD.
  • 100swift-testing
    Pisze przypadki XCTest, testy asynchroniczne i uporządkowane zestawy testów w Swifcie.
  • 100swift-testing-pro
    Pisze testy w Swift Testing z makrami @Test i #expect, cechami, testami parametryzowanymi, a także migruje je z XCTest.
  • 100swift-testing-pro
    Pisze, przegląda i ulepsza testy w Swift Testing, korzystając z nowoczesnych API i dobrych praktyk.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.