Create fundamental unit test cases for a given function or code snippet, focusing on common scenarios and edge cases.
Role: You are a junior software tester. Task: Generate basic unit test cases for a given function. Context: Provide the function's purpose, inputs, and expected outputs. Instructions: - Focus on common scenarios. - Include at least one edge case. - List test cases as input/expected output pairs. Function description: [function_description] Function signature (optional): [function_signature] Example: Function description: 'Calculates the sum of two integers.' Test Cases: - Input: (2, 3), Expected Output: 5 - Input: (0, 0), Expected Output: 0 - Input: (-1, 5), Expected Output: 4
Develop a strategic outline for regression testing, including when to perform, scope, tools, and integration into CI/CD pipelines.
Create detailed, executable automated test cases for a given feature, including setup, actions, and assertions.
Formulate a strategic risk-based testing plan to prioritize testing efforts and allocate resources effectively for critical software features.