{"data":{"slug":"github-xberg-io-xberg-ai-rulez-skills-e2e-fixtures-b86a9915b996","title":"E2E Fixtures Creation","summary":"Create end-to-end (E2E) test fixtures for API calls, inputs, mocks, and assertions. Used to generate test cases for integration testing.","url":"https:\/\/skillshunter.net\/skills\/github-xberg-io-xberg-ai-rulez-skills-e2e-fixtures-b86a9915b996","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-xberg-io-xberg-ai-rulez-skills-e2e-fixtures-b86a9915b996","markdown_url":"https:\/\/skillshunter.net\/skills\/github-xberg-io-xberg-ai-rulez-skills-e2e-fixtures-b86a9915b996.md","download_url":"https:\/\/skillshunter.net\/skills\/github-xberg-io-xberg-ai-rulez-skills-e2e-fixtures-b86a9915b996\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"The user needs to provide a directory structure under `fixtures\/` and files containing one JSON object per file, with fields like `id`, `call`, `description`, and `assertions`.","instructions":"---\ntype: Playbook\ntitle: E2E Fixtures\ndescription: \"Add or edit e2e fixtures: calls, inputs, mocks, assertions and schema.\"\npaths:\n  - \"fixtures\/**\"\n  - \"e2e\/**\"\nx-ai-rulez:\n  kind: skill\n  id: e2e-fixtures\n  metadata:\n    name: e2e-fixtures\n---\n\n# xberg E2E Fixtures\n\nOne JSON object per file under `fixtures\/<dir>\/`. The directory is the default category; an explicit `category` field\noverrides it and names the generated test file (e.g. `fixtures\/plugin_api\/list_reranker_backends.json` sets\n`reranker_backend_management`, so its Python test lands in `e2e\/python\/tests\/test_reranker_backend_management.py`).\n\n- Fields: `id` (unique snake_case, becomes the test name), `call`, `description`, `docs` (`topic`, `title`,\n  `description`, `side_effects`), `assertions`; optional `category`, `tags`, `input`, `config`, `args`, `skip`.\n- `call`: `extract` (most fixtures), `extract_batch`, `pdf_page_count`, `extract_with_external_redaction`, and the\n  plugin-registry calls (`list_*`, `register_*`, `unregister_*`, `clear_*` for OCR, embedding, tokenizer, reranker\n  backends, renderers, validators, post-processors; `ocr_backend_supports_language`).\n- `input`: `extract_input` (`kind: \"uri\"` with `$mock_url\/...`, or `bytes` + `filename` + `mime_type`) plus\n  `mock_responses` (`path`, `status_code`, `headers`, optional `method`, and a body: `body_file` resolved against\n  a `responses` subdirectory of `fixtures\/` (none exists yet), then `fixtures\/` itself, so `..\/test_documents\/...` is\n  the in-repo submodule; or `body_inline`).\n  Batch calls take `inputs`. A bytes input can also sit at the top level of `input` (`kind: \"bytes\"`, `bytes`,\n  `filename`, `mime_type`) without `extract_input`. Other calls take call-specific `input` fields\n  (`pdf_bytes`\/`password`, `findings_json`, registry `name`\/`backend`); copy an existing fixture of that call.\n- Assertion types:\n  `not_error`, `error`, `equals`, `min_length`, `count_min`, `count_equals`, `contains`, `contains_any`,\n  `contains_all`, `not_contains`, `not_empty`, `greater_than_or_equal`, `less_than_or_equal`. Example `field`:\n  `results[0].mime_type`.\n- Assertion shape and generation: the shared `e2e-generation` skill.\n- `skip`: `{languages: [...], reason: \"...\"}`.\n- Directories: `smoke`, `extract`, `batch`, `contract`, `error`, `format_specific`, `pdf`, `code`, `url`, `plugin_api`,\n  `registry`, `summarization`. Field-only categories (all under `plugin_api\/`): `ocr_backend_management`,\n  `embedding_backend_management`, `tokenizer_backend_management`, `reranker_backend_management`,\n  `renderer_management`, `validator_management`, `post_processor_management`.\n- `fixtures\/repros\/` holds repro assets (PDFs, configs, READMEs) and `fixtures\/images\/` a test image; neither holds\n  e2e fixtures.\n\nCopy the nearest existing fixture of the same `call` rather than writing one from this list.\n","use_cases":["Define test scenarios for API endpoints with expected inputs and outputs.","Create mock data and assertions for integration testing.","Generate test files for Python-based E2E test suites."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/xberg-io\/xberg\/blob\/ffbf7971796a126fc52f6bb8fb40418772071f61\/.ai-rulez\/skills\/e2e-fixtures\/SKILL.md","source_commit":"ffbf7971796a126fc52f6bb8fb40418772071f61","license":null,"version":null,"listing_approved_at":"2026-11-16","created_at":"2026-11-15T13:25:41.000000Z","updated_at":"2026-11-16T05:16:54.000000Z","seo_title":"Create E2E Test Fixtures for API Integration","seo_description":"Generate end-to-end test fixtures for API calls, inputs, and assertions. Ideal for integration testing and test automation.","seo_keywords":["create e2e test fixtures","api integration test fixtures","end-to-end test setup","test case generation"]}}