AI студия Владимира Ломтева
УСЛУГИПРОЕКТЫСТАТЬИБАЗА ЗНАНИЙМаркетплейсПолезные сервисы

Оставьте заявку,
чтобы обсудить проект

Напишите ваш вопрос, не забудьте указать телефон. Мы перезвоним и все расскажем.

Контакты

Москва

Работаем по всей России
и миру (онлайн)

+7 (999) 760-24-41

Ежедневно с 9:00 до 21:00

lamooof@gmail.com

По вопросам сотрудничества

TelegramWhatsApp

Есть предложение?

Напишите нам в мессенджеры

© 2025 AI студия Владимира Ломтева

Политика конфиденциальностиСогласие на обработку ПДн|ИНН 623412173261
    Swift Testing Expert — Скилл для ИИ-агентов | AI Рассвет

    Swift Testing Expert

    Expert guidance for Swift Testing: test structure, expect/ require macros, traits and tags, parameterized tests, test plans, parallel execution, async waiting patterns, and XCTest migration. Use when writing new Swift tests, modernizing XCTest suites, debugging flaky tests, or improving test quality and maintainability in Apple platform or Swift server projects.

    Скиллы для разработки#GitHub#avdlee/swift-testing-agent-skill#skills.sh
    Скачивания
    0
    В избранном
    0
    Комментарии
    0
    Просмотры

    Установить скилл

    Добавьте инструмент одной командой или скачайте проверенный архив версии.

    npx skills add avdlee/swift-testing-agent-skill --skill swift-testing-expert
    Скачать ZIP
    Версия
    1.0.0+798e9b1a2bca
    Автор
    Владимир Ломтев
    Репозиторий
    avdlee/swift-testing-agent-skill
    GitHub: avdlee/swift-testing-agent-skill
    2

    Установить скилл

    Добавьте инструмент одной командой или скачайте проверенный архив версии.

    npx skills add avdlee/swift-testing-agent-skill --skill swift-testing-expert
    Скачать ZIP
    Версия
    1.0.0+798e9b1a2bca
    Автор
    Владимир Ломтев
    Репозиторий
    avdlee/swift-testing-agent-skill
    GitHub: avdlee/swift-testing-agent-skill

    Как установить

    1. 1Скопируйте команду из блока установки.
    2. 2Запустите её в терминале из каталога проекта.

    Документация

    Swift Testing

    Overview

    Use this skill to write, review, migrate, and debug Swift tests with modern Swift Testing APIs. Prioritize readable tests, robust parallel execution, clear diagnostics, and incremental migration from XCTest where needed.

    Agent behavior contract (follow these rules)

    1. Prefer Swift Testing for Swift unit and integration tests, but keep XCTest for UI automation (XCUIApplication), performance metrics (XCTMetric), and Objective-C-only test code.
    2. Treat #expect as the default assertion and use #require when subsequent lines depend on a prerequisite value.
    3. Default to parallel-safe guidance. If tests are not isolated, first propose fixing shared state before applying .serialized.
    4. Prefer traits for behavior and metadata (.enabled, .disabled, .timeLimit, .bug, tags) over naming conventions or ad-hoc comments.
    5. Recommend parameterized tests when multiple tests share logic and differ only in input values.
    6. Use @available on test functions for OS-gated behavior instead of runtime #available checks inside test bodies; never annotate suite types with @available.
    7. Keep migration advice incremental: convert assertions first, then organize suites, then introduce parameterization/traits.
    8. Only import Testing in test targets, never in app/library/binary targets.

    First 60 seconds (triage template)

    • Clarify the goal: new tests, migration, flaky failures, performance, CI filtering, or async waiting.
    • Collect minimal facts:
      • Xcode/Swift version and platform targets
      • Whether tests currently use XCTest, Swift Testing, or both
      • Whether failures are deterministic or flaky
      • Whether tests access shared resources (database, files, network, global state)
    • Branch quickly:
      • repetitive tests -> parameterized tests
      • noisy or flaky failures -> known issue handling and test isolation
      • migration questions -> XCTest mapping and coexistence strategy
      • async callback complexity -> continuation/await patterns

    Routing map (read the right reference fast)

    • Test building blocks and suite organization -> references/fundamentals.md
    • #expect, #require, and throw expectations -> references/expectations.md
    • Traits, tags, and Xcode test-plan filtering -> references/traits-and-tags.md
    • Parameterized test design and combinatorics -> references/parameterized-testing.md
    • Default parallel execution, .serialized, isolation strategy -> references/parallelization-and-isolation.md
    • Test speed, determinism, and flakiness prevention -> references/performance-and-best-practices.md
    • Async waiting and callback bridging -> references/async-testing-and-waiting.md
    • XCTest coexistence and migration workflow -> references/migration-from-xctest.md
    • Test navigator/report workflows and diagnostics -> references/xcode-workflows.md
    • Index and quick navigation -> references/_index.md

    Common pitfalls -> next best move

    • Repetitive testFooCaseA/testFooCaseB/... methods -> replace with one parameterized @Test(arguments:).
    • Failing optional preconditions hidden in later assertions -> try #require(...) then assert on unwrapped value.
    • Flaky integration tests on shared database -> isolate dependencies or in-memory repositories; use .serialized only as a transition step.
    • Disabled tests that silently rot -> prefer withKnownIssue for temporary known failures to preserve signal.
    • Unclear failure values for complex types -> conform type to CustomTestStringConvertible for focused test diagnostics.
    • Test-plan include/exclude by names -> use tags and tag-based filters instead.

    Verification checklist

    • Confirm each test has a single clear behavior and expressive display name when needed.
    • Confirm prerequisites use #require where failure should stop the test.
    • Confirm repeated logic is parameterized instead of duplicated.
    • Confirm tests are parallel-safe or intentionally serialized with rationale.
    • Confirm async code is awaited and callback APIs are bridged safely.
    • Confirm migration keeps unsupported XCTest-only scenarios on XCTest.

    References

    • references/_index.md
    • references/fundamentals.md
    • references/expectations.md
    • references/traits-and-tags.md
    • references/parameterized-testing.md
    • references/parallelization-and-isolation.md
    • references/performance-and-best-practices.md
    • references/async-testing-and-waiting.md
    • references/migration-from-xctest.md
    • references/xcode-workflows.md

    Требования и возможности

    Источник пакета
    https://github.com/avdlee/swift-testing-agent-skill/tree/798e9b1a2bcac164d4f0c781908199e754f0bab6/swift-testing-expert

    Файлы версии

    ПутьРазмерSHA256
    SKILL.md4908d039eb55cfbaa379...
    references/_index.md1004623f23b0e14d3639...
    references/async-testing-and-waiting.md3243e5f7d016a95d9767...
    references/expectations.md3486e3d4a57b5d162f49...
    references/fundamentals.md3830ad3af7d6ce9a31c2...

    Частые вопросы

    Как установить Swift Testing Expert?
    Используйте команду npx skills add avdlee/swift-testing-agent-skill --skill swift-testing-expert или скачайте ZIP-архив.
    Можно ли скачать Swift Testing Expert бесплатно?
    Да, опубликованную версию можно скачать из маркетплейса бесплатно.

    Похожие инструменты

    Смотреть все
    React DoctorUse when finishing a feature, fixing a bug, before committing React code, or when the user types `/doctor`, asks to scan, triage, or clean up React diagnostics. Covers lint, accessibility, bundle size, architecture. Includes a regression check and a full local-triage workflow that fetches the canonical playbook.Argent Android Emulator SetupSet up and connect to an Android emulator using argent MCP tools. Use when starting a new session on Android, booting an emulator, getting a device serial, or before any UI interaction task.Fireworks Tech GraphCreate technical diagrams such as software architecture, data flow, flowcharts, sequence diagrams, C4 reviews, cloud deployments, event streams, observability investigations, agent/memory systems, UML, ER, network topology, timelines, and technical concept maps, then export SVG, PNG, focused semantic SVG-to-GIF motion, or offline interactive HTML. Treat direct requests such as "Generate a GIF", "生成 GIF", or "制作 GIF" as motion requests, and use this skill when the user asks to visualize a system or engineering concept. Do not use for photos, raster artwork, or quantitative data charts.Modern Web GuidanceSearch tool for modern web development best practices. MANDATORY: Execute FIRST for all HTML/CSS and clientside JS tasks. Do NOT skip — web APIs evolve rapidly and training weights contain obsolete patterns.
    Комментарии

    Войдите, чтобы оставить комментарий.

    Комментариев пока нет.