بنقرة واحدة
fp-generate
Generate E2E test files from E2E_TESTS.md specifications
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Generate E2E test files from E2E_TESTS.md specifications
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Add a new feature or suite to the E2E spec and generate corresponding tests
Create a new E2E_TESTS.md specification file for a package
Bootstrap E2E_TESTS.md specification files for a project
Validate that E2E_TESTS.md specification files are complete and well-structured
Update an existing E2E_TESTS.md specification to reflect changes
Framework-agnostic E2E testing principles, spec-driven test generation, and maintenance workflows
| name | fp-generate |
| description | Generate E2E test files from E2E_TESTS.md specifications |
Generate E2E test files from E2E_TESTS.md specifications. This creates new test files for all specified suites, overwriting any existing generated tests.
Additional instructions from the user: "$ARGUMENTS". Ignore if empty.
Before proceeding, warn the user:
Warning: This skill will delete all existing E2E test files and regenerate them from scratch based on the
E2E_TESTS.mdspecifications. Any manual edits or customizations in existing test files will be lost.If you only need to bring existing tests in sync with updated specs — without discarding them — use
/fp-updateinstead. That skill analyzes the diff between specs and tests, and applies incremental changes.
Ask the user to confirm they want to proceed with full regeneration. Do not continue unless they explicitly confirm.
This command has four phases. Complete all four in order.
E2E_TESTS.md files by searching recursively from the project root.E2E_TESTS.md and extract all suites, features, preconditions, postconditions, and metadata.e2e-utils files)For each suite in each spec:
Preconditions sections (at whatever heading level they appear) to per-test or per-suite setup hooks (the framework's equivalent of running code before each test or before all tests in a suite).Postconditions sections (at whatever heading level they appear) to assertions and per-test teardown hooks (the framework's equivalent of running cleanup code after each test).Present the plan to the user:
Ask the user if they want to proceed or adjust the plan.
Before generating anything, find and delete all existing autogenerated E2E test files. Autogenerated files are identified by the presence of an autogenerated header comment. Remove these files so that tests are created from a clean slate.
For each planned test file:
describe() in vitest/jest, suite in other frameworks).beforeEach in vitest/jest) from preconditions:
afterEach in vitest/jest) for cleanup:
skip metadata with skipIf and skip documentation blocke2e-utils doesn't exist, create it with safeCleanup, mock helpers, and common constants.