On Writing Software Well #5: Testing without test damage or excessive isolation.

  Рет қаралды 8,765

Getting Real

Getting Real

Күн бұрын

Пікірлер: 8
@ryanbuckley1636
@ryanbuckley1636 5 жыл бұрын
Thanks for taking the time to make and share this! Cool to see and hear the reasoning
6 жыл бұрын
The right number of assertions per test is the number that makes me feel comfortable to fulfill the test I'm writing. I started by following the rule of one assertion per test and, then I realize that I was writing "micro tests" most of the times.
@guilhermecaraciolo
@guilhermecaraciolo 3 жыл бұрын
Thanks for sharing such a nice content!
@Stevoo84
@Stevoo84 6 жыл бұрын
Hey DHH... I would be really interested in seeing how those tests come to live. At which point those are written, what is the thought process when setting them up (i.e. working with existing fixtures), etc. Would be cool to see some screencast focused on that.
@niravgandhi9196
@niravgandhi9196 6 жыл бұрын
Thanks for sharing this! One question. At which stage of development do you guys write tests for a feature? Is it just when the dev looks complete?
@BibinVenugopal
@BibinVenugopal 5 жыл бұрын
Actually it says, you have to write tests first then do the development
@maxnovee
@maxnovee 6 жыл бұрын
And what about third-party integrations? I bet you are using at least one payment provider API, aren't you stubing/mocking anything there?
@willbarker3707
@willbarker3707 6 жыл бұрын
It's mentioned in the description - "Mocks and stubs are necessary evils when talking to external services in some cases, but you rarely need them within the boundaries of your own app."
Из какого города смотришь? 😃
00:34
МЯТНАЯ ФАНТА
Рет қаралды 2,2 МЛН
When u fight over the armrest
00:41
Adam W
Рет қаралды 28 МЛН
World’s strongest WOMAN vs regular GIRLS
00:56
A4
Рет қаралды 44 МЛН
ТЮРЕМЩИК В БОКСЕ! #shorts
00:58
HARD_MMA
Рет қаралды 2,3 МЛН
On Writing Software Well #3: Using globals when the price is right
17:17
DHH discusses SQLite (and Stoicism)
54:00
Aaron Francis
Рет қаралды 99 М.
🚀  TDD, Where Did It All Go Wrong (Ian Cooper)
1:03:55
DevTernity Conference
Рет қаралды 567 М.
On Writing Software Well #3: Using globals when the price is right
17:17
David Heinemeier Hansson
Рет қаралды 19 М.
On Writing Software (well?) #1: Pilot Episode
15:59
David Heinemeier Hansson
Рет қаралды 78 М.
Из какого города смотришь? 😃
00:34
МЯТНАЯ ФАНТА
Рет қаралды 2,2 МЛН