What problem does it solve?
This Skill streamlines the process of writing, running, and debugging tests within the Shopsys Platform, ensuring code quality and maintainability.
Core Features & Use Cases
- Test Layer Selection: Guides you to choose the appropriate base class (Unit, Functional, GraphQL, Smoke, Acceptance) for your test.
- Behavioral Testing: Enforces writing tests that assert observable state or output, not just method calls.
- Code Style & Structure: Provides clear guidelines on naming conventions, AAA pattern, and service injection.
- Use Case: When you need to add a new test for a product-related service, this Skill will help you select the correct
FunctionalTestCase and structure your test to assert that the product name is updated correctly after an edit operation.
Quick Start
Use the test-writing skill to create a new unit test for the ProductService class.