Skip to content
S

swift-protocol-di-testing

Protocol-based dependency injection for testable Swift code

by affaan-mFree

Launch
#420in AI Skills
0In stores

Description

swift-protocol-di-testing is an agent skill from the ECC collection by affaan-m, listed on skills.sh. It sets out protocol-based dependency…

Highlights

  • Small, focused protocols per dependency
  • Mocks for file system, network and iCloud
  • Deterministic tests with no I/O
  • Swift Testing examples

Ratings & Reviews

No ratings yet

Be the first to rate swift-protocol-di-testing.

People also visit

M

migrate-to-shoehorn

Migrate test files from `as` type assertions to @total-typescript/shoehorn

AI Skills
Launch
T

tdd

Test-driven development with vertical slices, behavior-focused tests

AI Skills
Launch
A

ai-regression-testing

Regression testing strategies for AI-assisted development

AI Skills
Launch
B

benchmark-optimization-loop

Convert 'make it faster' requests into a bounded measured optimization loop

AI Skills
Launch
C

cpp-testing

Use only when writing/updating/fixing C++ tests, configuring GoogleTest/CTest

AI Skills
Launch
C

csharp-testing

C# and .NET testing patterns

AI Skills
Launch

swift-protocol-di-testing FAQ

What does the swift-protocol-di-testing skill do?

It guides an agent in hiding external dependencies behind focused Swift protocols, so the code can be tested with mocks and no real I/O.

What dependencies does it cover?

The file system, the network, iCloud and other external APIs.

What testing framework does it use?

Swift Testing.

How do I install it?

Run: npx skills add https://github.com/affaan-m/ecc --skill swift-protocol-di-testing

Is it free?

Yes. It is free and open source.

Are there security findings?

The skills.sh listing shows Gen Agent Trust Hub, Socket and Snyk all passing.

What are the best swift-protocol-di-testing alternatives?

Popular alternatives to swift-protocol-di-testing include migrate-to-shoehorn, tdd and ai-regression-testing. See all swift-protocol-di-testing alternatives

Developer Stuff

Badges