You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement scale and smoke scenarios that validate generator behavior under realistic load and provide end-to-end validation of the complete workflow. These scenarios ensure the plugin works at scale and can handle full publish→install→generate flows.
Objectives
Verify generator performance and correctness with many libraries (≥10)
Validate complete end-to-end workflow from publish to move
Ensure plugin handles realistic workspace sizes
Scope / Scenario Details
1. SCALE-LIBS - Generate 10+ libs then one lib→lib move
Purpose: Verify performance and correctness with larger workspace
Setup:
Workspace with ≥10 libraries
Each library has 2-3 files
Libraries have interconnected imports (realistic dependency graph)
Implementation:
# Generate 10+ libraries using harnessforiin {1..10};do
nx generate @nx/js:library lib-$idone# Perform a single move between two libraries
nx generate @nxworker/workspace:move-file --source=libs/lib-5/src/lib/util.ts --destination=libs/lib-7/src/lib
Assertions:
Move completes successfully (no timeout)
Imports updated correctly despite large workspace
No unintended side effects in other libraries
Performance is reasonable (< 30 seconds for move)
Notes:
This scenario validates the generator scales to realistic workspace sizes
Scale and smoke scenario implementations merged; orchestrator executes them with real assertions; all tests passing; both scenarios provide realistic validation.
Parent: #319
Summary
Implement scale and smoke scenarios that validate generator behavior under realistic load and provide end-to-end validation of the complete workflow. These scenarios ensure the plugin works at scale and can handle full publish→install→generate flows.
Objectives
Scope / Scenario Details
1. SCALE-LIBS - Generate 10+ libs then one lib→lib move
Purpose: Verify performance and correctness with larger workspace
Setup:
Implementation:
Assertions:
Notes:
2. SMOKE-SENTINEL - Combined publish+install+single move
Purpose: End-to-end smoke test covering full workflow
Setup:
Implementation:
Assertions:
Notes:
Tasks
Acceptance Criteria
Dependencies
Out of Scope
Definition of Done
Scale and smoke scenario implementations merged; orchestrator executes them with real assertions; all tests passing; both scenarios provide realistic validation.