Go ba test
CtrlK
  • یادگیری گو با تست
  • اصول گو
    • نصب گو
    • سلام، دنیا
    • اعداد صحیح
    • تکرار
    • آرایه و اسلایس
    • ساختار, متد و اینترفیس
    • پوینتر و خطا
    • مپ
    • تزریق وابستگی
    • تقلید
    • همزمانی
    • دستور Select
    • انعکاس
    • کتابخانه‌ی Sync
    • کتابخانه‌ی Context
    • Intro to property based tests
    • Maths
    • Reading files
    • Templating
    • Generics
    • Revisiting arrays and slices with generics
  • Testing fundamentals
    • Introduction to acceptance tests
    • Scaling acceptance tests
    • Working without mocks
  • Build an application
    • Intro
    • HTTP server
    • JSON, routing and embedding
    • IO and sorting
    • Command line & package structure
    • Time
    • WebSockets
  • Questions and answers
    • OS Exec
    • Error types
    • Context-aware Reader
    • Revisiting HTTP Handlers
  • Meta
    • Why unit tests and how to make them work for you
    • Anti-patterns
    • Contributing
    • Chapter Template
Powered by GitBook
On this page
  • Write the test first
  • Try to run the test
  • Write the minimal amount of code for the test to run and check the failing test output
  • Write enough code to make it pass
  • Refactor
  • Repeat for new requirements
  • Wrapping up
  1. Meta

Chapter Template

Some intro

Write the test first

Try to run the test

Write the minimal amount of code for the test to run and check the failing test output

Write enough code to make it pass

Refactor

Repeat for new requirements

Wrapping up

PreviousContributing

Last updated 1 year ago