Loading...
Loading...
Advanced testing strategies and methodologies. Use when user asks to "design tests", "test coverage", "property-based testing", "mutation testing", "contract testing", "chaos engineering", "test pyramid", "testing strategy", "behavior-driven development", "acceptance testing", or mentions comprehensive testing approaches.
npx skill4agent add 1mangesh1/dev-skills-collection testing-strategies UI/E2E Tests
/ \
/ \
Integration Tests
/ \
/ \
Unit Teststest_[function]_[scenario]_[expected_outcome]
Example:
test_calculateDiscount_withValidCode_returnsDiscountedPrice
test_loginUser_withInvalidPassword_throwsAuthenticationErrortest('calculateTotal with items', () => {
// Arrange
const cart = new Cart();
cart.addItem({ price: 10 }, 2);
// Act
const total = cart.getTotal();
// Assert
expect(total).toBe(20);
});Feature: User Authentication
Scenario: Login with valid credentials
Given a user with email "test@example.com"
When the user logs in with correct password
Then they should see the dashboard