PyTest - Basics and SetupWhich framework automatically discovers tests by looking for files and functions starting with 'test' without extra configuration?AunittestBpytestCnoseDNone of the aboveCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand test discovery in frameworksTest discovery means finding test files and functions automatically.Step 2: Check which framework uses naming conventions for discoverypytest looks for files and functions starting with 'test' by default without config.Final Answer:pytest automatically discovers tests by naming convention -> Option BQuick Check:Auto discovery by name = pytest [OK]Quick Trick: pytest finds tests by default 'test_' prefix [OK]Common Mistakes:MISTAKESThinking unittest discovers tests automaticallyConfusing nose's discovery with pytestBelieving extra config is always needed
Master "Basics and Setup" in PyTest9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepTraceTryChallengeAutomateRecallFrame
More PyTest Quizzes Fixtures - Autouse fixtures - Quiz 12easy Markers - @pytest.mark.skip with reason - Quiz 2easy Markers - @pytest.mark.xfail for expected failures - Quiz 5medium Parametrize - Combining multiple parametrize decorators - Quiz 13medium Parametrize - Why parametrize multiplies test coverage - Quiz 10hard PyTest Basics and Setup - Project structure for tests - Quiz 1easy Test Organization - Why organized tests scale with projects - Quiz 2easy Test Organization - Test classes - Quiz 14medium Test Organization - Conftest.py purpose - Quiz 8hard Test Organization - Conftest.py purpose - Quiz 5medium