Complete the code to define the main goal of shift-left testing.
shift_left_testing_goal = "Detect defects [1] in the development process"
Shift-left testing means finding defects early in the development process to save time and cost.
Complete the code to show which phase shift-left testing emphasizes.
shift_left_focus = "[1] testing"
Shift-left testing focuses on unit testing early in development to catch bugs quickly.
Fix the error in the code that describes shift-left testing benefits.
def benefits_of_shift_left(): return "Reduces cost and time by finding bugs [1]"
Finding bugs early reduces cost and time in software development.
Fill both blanks to complete the dictionary that maps testing phases to shift-left focus.
shift_left_map = {"[1]": "early testing", "[2]": "later testing"}Unit testing is done early, system testing is done later in the process.
Fill all three blanks to complete the code that filters tests suitable for shift-left testing.
suitable_tests = [test for test in all_tests if test.type == '[1]' and test.phase [2] 'development' and test.automated == [3]]
Shift-left testing uses unit tests that run during development and are automated (True).