What problem does it solve?
This Skill simplifies the creation of test specifications for blocks within the flow-state-dev framework, eliminating the need to write extensive test cases by automating many steps following established conventions.
Core Features & Use Cases
- Automated Test Generation: Automates the writing of test specifications that verify block functionality following the project's test patterns.
- Mocking and Context Setup: Offers built-in methods for setting up mock contexts, including model mocking, to test block logic independently.
- Test Coverage Verification: Provides a checklist for ensuring comprehensive test coverage of block inputs, outputs, state, and resource management.
- Integration with CI Systems: Generates CI specs, ensuring that automated testing is a seamless part of the deployment workflow.
- Use Case: When working with a new block or updating an existing one, this Skill automates the test-writing process, enabling faster integration and less time spent on manual testing.
Quick Start
To write tests for a new block, run the write-block-tests skill and follow the on-screen guide to input the necessary information about the block to be tested.