Test it, then build it

Software Development with Cursor

Francesca Donadoni

AI Curriculum Manager, DataCamp

Test-Driven Development (TDD)

test_driven_development.png

Software Development with Cursor

Test-Driven Development (TDD)

  • Cursor can get confused with vague instructions

10.png

  • Test-Driven Development helps solve that by defining clear rules

11.png

Software Development with Cursor
Software Development with Cursor

Adding more tests

$$

  • 🖥 Does the navigation bar render correctly?

$$

  • 🗂 Are your project cards showing?

$$

  • 🌐 Do links open in new tabs?
Software Development with Cursor

Cursor browser for real testing

  • Cursor opens the app, sees how it looks, clicks buttons, and checks for real-world issues
  • We can either connect it to Cursor's built-in browser or any external browser

browser tab.png

Software Development with Cursor
Software Development with Cursor

Visual testing with images

visual testing.png

Software Development with Cursor
Software Development with Cursor

Bringing it all together

$$

  • 🎯 Define clear goals with tests

$$

  • ⚙️ Let Cursor build toward them

$$

  • 👩‍💻 Visually check results in the Browser
Software Development with Cursor

Let's practice!

Software Development with Cursor

Preparing Video For Download...