pytest-ஓட tests எழுதுறது
pytest-ஓட unit tests எழுதவும், fixtures, parametrised tests use பண்ணவும், மெதுவான அல்லது வெளி பகுதிகளை fake பண்ணவும், எதை முதல்ல test பண்றதுன்னு தெரிஞ்சுக்கவும் முடியும்.
Beginner 3 · Data and toolsabout 2 hours5 sections
சுருக்கமா சொன்னா
Test-னா, தெரிஞ்ச ஒரு input-ஓட உங்க code-ஐ run பண்ணி output-ஐ check பண்ற code. pytest, test_ன்னு பேர் இருக்குற functions-ஐ கண்டுபிடிச்சு எது pass ஆச்சுன்னு சொல்லும்; அதனால எதையும் உடைக்கலன்னு தெரிஞ்சுக்கிட்டே code-ஐ மாத்தலாம்.
இது ஏன் முக்கியம்
Tests பயமில்லாம code-ஐ மாத்த விடும், users பார்க்குறதுக்கு முன்னாடியே bugs-ஐ பிடிக்கும், உங்க change வேலை செய்யுதுன்னு reviewers-க்கு காட்டும். Interviewers நீங்க எப்படி test பண்றீங்கன்னு கேப்பாங்க; AI teams தங்க code-ஐயும் prompts-ஐயும் ரெண்டையும் test பண்றாங்க.
Sign up free to read the whole lesson
The rest of this lesson: 5 parts, video lessons, the best course, practice and a quick check. It is free, takes a few seconds and needs no card.
Accounts are for learners aged 18 and over. Under 18? The quick answer and the first part of every lesson stay open: browse lessons by topic.
Related
Software engineeringBeginner 3: Data and toolsUnit testpytestTest fixtureMocking