W Api Test

blockmatic/basilic-skills/skills/workflow/w-api-test

by blockmatic7e05e2abd052dc6b526e8a28e36d102d42bfd635No license1 starsListed Oct 9, 2026Updated Oct 9, 2026Repository updated 6 days ago

Add API tests that exercise public HTTP behavior against existing harnesses.

Instructions onlySoftware Development
AI-generated overview

Adds API tests that exercise public HTTP behavior against a repository's existing test harness.

What it does
This skill guides an agent through writing API tests that exercise endpoints through the public interface using the repository's API or Playwright harness. It covers the requested operations, authorization denials, and contract-shaped responses, using sandbox or local servers from package scripts and cleaning up created resources. It then runs the documented API or e2e command for those tests and points to a docs skill if behavior or commands changed.
When to use it
Use it when a repository needs new API or end-to-end tests for HTTP endpoints, especially when existing test harnesses and specs are already in place. It fits work that must avoid production systems and hardcoded secrets.
Requirements
Requires an existing repository test harness (API or Playwright), existing test specs or API testing documentation to read, and package scripts that provide sandbox or local servers. No scripts are shipped; it is instructions only.

Test endpoints through the public interface using this repo's API or Playwright harness. Do not hit production. Do not hardcode secrets.

  1. Read the API testing MDX and existing *.test.ts or e2e specs.
  2. Cover the requested operations, authz denials, and contract-shaped responses.
  3. Use sandbox or local servers from package scripts. Clean up created resources.
  4. Run the documented API or e2e command for those tests.
  5. Docs: /w-docs if behavior or commands changed.

Source and attribution

Source:blockmatic/basilic-skillsinskills/workflow/w-api-testat commit7e05e2a

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal