Add end-to-end CLI template tests #3

Closed
opened 2026-05-19 19:51:44 -05:00 by erik · 0 comments
Owner

Goal

Add end-to-end tests proving the in-repo template website and slug CLI work together through the Slugkit API contract.

Requirements

  • Start the in-repo template site in a test environment with an isolated database and fake/mock media storage where needed.
  • Create or seed an API key for test use without exposing real secrets.
  • Configure slug against the running template site in an isolated CLI config directory.
  • Run slug doctor successfully.
  • Exercise representative commands for posts, tags, contacts, sources, accounts, media, followers/following/engagement/comments where supported or verify standardized 501 Not Implemented handling where unsupported.
  • Verify OpenAPI-backed request/response shapes match CLI expectations.
  • Keep tests deterministic and suitable for local and CI execution.
  • Document how to run the end-to-end suite.

Acceptance criteria

  • E2E test starts the template site with isolated state.
  • E2E test configures slug with an isolated profile/API key.
  • slug doctor passes against the template site.
  • Representative create/list/show/update/delete flows pass for implemented resources.
  • Unsupported optional social operations produce clear 501 Not Implemented CLI output when not implemented.
  • E2E suite does not require real S3 credentials or production secrets.
  • E2E suite is documented and runs with the project test command or a documented target.

Dependencies

  • task-d6397b57
  • task-69937fe4
  • task-0dbd25d3
  • task-090a180b
  • task-75225f6e
  • task-4efe743e
  • task-e4b52b94
  • task-36204c4c
  • task-c272cbda
  • task-47be19ea
  • task-782a7074
  • task-8fbb8c0c
  • task-e8b46ccd
  • task-43f5a652
  • task-fb0840e3
  • task-8b14c508
  • task-a5f5c185
  • task-11469f4d
  • task-b26679e3
  • task-64b4aa7e
  • task-a3cd5595
  • task-7dac3c73
  • task-27d5f447
  • task-73263aa1
  • task-4daec054
  • task-babcf8cc
  • task-9e1abf9b
  • task-75bdc139
  • task-a3cc54cf
  • task-b6465f1e
  • task-d740c74d
  • task-8645964c
## Goal Add end-to-end tests proving the in-repo template website and `slug` CLI work together through the Slugkit API contract. ## Requirements - Start the in-repo template site in a test environment with an isolated database and fake/mock media storage where needed. - Create or seed an API key for test use without exposing real secrets. - Configure `slug` against the running template site in an isolated CLI config directory. - Run `slug doctor` successfully. - Exercise representative commands for posts, tags, contacts, sources, accounts, media, followers/following/engagement/comments where supported or verify standardized `501 Not Implemented` handling where unsupported. - Verify OpenAPI-backed request/response shapes match CLI expectations. - Keep tests deterministic and suitable for local and CI execution. - Document how to run the end-to-end suite. ## Acceptance criteria - [ ] E2E test starts the template site with isolated state. - [ ] E2E test configures `slug` with an isolated profile/API key. - [ ] `slug doctor` passes against the template site. - [ ] Representative create/list/show/update/delete flows pass for implemented resources. - [ ] Unsupported optional social operations produce clear `501 Not Implemented` CLI output when not implemented. - [ ] E2E suite does not require real S3 credentials or production secrets. - [ ] E2E suite is documented and runs with the project test command or a documented target. ## Dependencies - task-d6397b57 - task-69937fe4 - task-0dbd25d3 - task-090a180b - task-75225f6e - task-4efe743e - task-e4b52b94 - task-36204c4c - task-c272cbda - task-47be19ea - task-782a7074 - task-8fbb8c0c - task-e8b46ccd - task-43f5a652 - task-fb0840e3 - task-8b14c508 - task-a5f5c185 - task-11469f4d - task-b26679e3 - task-64b4aa7e - task-a3cd5595 - task-7dac3c73 - task-27d5f447 - task-73263aa1 - task-4daec054 - task-babcf8cc - task-9e1abf9b - task-75bdc139 - task-a3cc54cf - task-b6465f1e - task-d740c74d - task-8645964c
erik 2026-06-08 07:10:04 -05:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
erik/slugkit#3
No description provided.