Get your API key

Beginner · 5 lessons · 41 min

AI ke saath testing

AI se uske kaam ka saboot lo. Aapke simple English rules automatic tests bante hain jo users se pehle toot-phoot pakad lete hain.

Kiske liye hai

Har woh insaan jo AI agent se app bana raha hai aur "ek cheez theek ki, doosri toot gayi" se pareshaan hai. Coding nahi aani chahiye: tests AI likhega, aap rules likhoge aur results padhoge.

Aap kya banaoge

Ek app ke liye asli test suite (paise wale rules ke unit tests Vitest se, main journeys ke end-to-end tests Playwright se) aur AGENTS.md mein ek testing rule jo AI har chat mein follow kare.

Yeh course kyun

2025 ke Stack Overflow survey mein 66% developers ne kaha ki AI ki sabse badi pareshani hai code jo "almost right, but not quite" hota hai, aur AI ki accuracy par bharosa na karne wale (46%) bharosa karne walon (33%) se zyaada hain. Vibe coders bataate hain ki agent ek cheez theek karta hai aur do tod deta hai, aur agents tests ko badal kar ya kamzor karke pass karwate pakde gaye hain. Beginners ko ise pakadne ka simple tarika chahiye.

Pehle yeh karo: AI coding ke liye prompting, Apna pehla web MVP banao

Is course ke lessons

  1. 1AI ke likhe code ko tests kyun chahiyeAgent chalte hue features kyun tod dete hain, test kya hota hai, aap kaunse do tarah ke tests use karoge, aur kaun kya karega: rules aap, tests AI. 7 min Free
  2. 2Simple English rules se test cases takAcceptance criteria ko Given / When / Then mein asli numbers ke saath likho, edge cases dhoondo, aur ACCEPTANCE.md mein save karo. 8 min Login karke kholo
  3. 3Vitest se unit testsAI se Vitest install karwao aur har rule ko test banwao, phir pass aur fail output padho: kaunsa test, expected vs received. 9 min Login karke kholo
  4. 4Playwright se end-to-end testsEk robot browser aapke app ki main journeys mein click karta hai. Playwright setup karo, ek journey record karo, aur UI mode aur HTML report padho. 9 min Login karke kholo
  5. 5Har change se pehle aur baad mein testsRed, fix, green, commit loop, AGENTS.md ka testing rule, saboot maangna, aur tests delete ya skip karne wale AI ko pakadna. 8 min Login karke kholo
Aage kyaAI ka kharcha control karoHar prompt ka kharcha rupees mein samjho, har kaam ke liye sahi model chuno, aur surprise bill se bacho.