SlideShare a Scribd company logo
1 of 18
Staszek Zawadzki, Visuality
Skoro już trzeba
napisać te testy
Czego nie robić przy pisaniu testów
Chyba że nienawidzisz firmy, co przejmuje Twój projekt
Live and Let Live.
Czyli lety na początku olbrzymiego pliku
Live and Let Live.
Złoty podział
Dziel pliki wg funkcji, jak się zbytnio rozrosną
Złoty podział.
Bifor na grubo
Befory na różnych poziomach, czyli nie ogarniam tej kuwety
Bifor na grubo.
Ruska fabryka
Czyli fabryka, która nie działa z domysłu
Ruska fabryka
A co robić?
Chyba że nienawidzisz firmy, co przejmuje Twój projekt :)
Mistrz cechowy
Uprość tworzenie bardziej skomplikowanych obiektów
Mistrz cechowy
Pomocna dłoń
Uprość tworzenie złożonych scenariuszy
Pomocna dłoń
So close, no matter how far
Uważaj na expecty zwracające Floaty i Timestampy. Uważaj
na testy, które mogą nie przejść o określonej godzinie lub
po zmianie czasu na zimowy.
Marie Condo
Nie zostawiaj śmieci. Zbędne zmienne, komentarze, xity.
Czego nie robić przy pisaniu testów

More Related Content

More from Visuality

What is NOT machine learning - Burak Aybar
What is NOT machine learning - Burak AybarWhat is NOT machine learning - Burak Aybar
What is NOT machine learning - Burak AybarVisuality
 
Do you really need to reload?
Do you really need to reload?Do you really need to reload?
Do you really need to reload?Visuality
 
How to check valid email? Find using regex(p?)
How to check valid email? Find using regex(p?)How to check valid email? Find using regex(p?)
How to check valid email? Find using regex(p?)Visuality
 
Fantastic stresses and where to find them
Fantastic stresses and where to find themFantastic stresses and where to find them
Fantastic stresses and where to find themVisuality
 
Fuzzy search in Ruby
Fuzzy search in RubyFuzzy search in Ruby
Fuzzy search in RubyVisuality
 
Rfc process in visuality
Rfc process in visualityRfc process in visuality
Rfc process in visualityVisuality
 
GraphQL in Ruby on Rails - basics
GraphQL in Ruby on Rails - basicsGraphQL in Ruby on Rails - basics
GraphQL in Ruby on Rails - basicsVisuality
 
Consumer Driven Contracts
Consumer Driven ContractsConsumer Driven Contracts
Consumer Driven ContractsVisuality
 
How do we use CircleCi in Laterallink?
How do we use CircleCi in Laterallink?How do we use CircleCi in Laterallink?
How do we use CircleCi in Laterallink?Visuality
 
React Native - Short introduction
React Native - Short introductionReact Native - Short introduction
React Native - Short introductionVisuality
 
Risk in project management
Risk in project managementRisk in project management
Risk in project managementVisuality
 
Ruby formatters
Ruby formattersRuby formatters
Ruby formattersVisuality
 
Proxying api calls
Proxying api callsProxying api calls
Proxying api callsVisuality
 
Gogo Conference 2018
Gogo Conference 2018Gogo Conference 2018
Gogo Conference 2018Visuality
 
Pair programming- Mariusz Kozieł
Pair programming- Mariusz KoziełPair programming- Mariusz Kozieł
Pair programming- Mariusz KoziełVisuality
 
Introduction to R Language
Introduction to R LanguageIntroduction to R Language
Introduction to R LanguageVisuality
 
Dashing, smashing, party crashing
Dashing, smashing, party crashingDashing, smashing, party crashing
Dashing, smashing, party crashingVisuality
 
Progressive Enhancement - Umit Naimian
Progressive Enhancement - Umit NaimianProgressive Enhancement - Umit Naimian
Progressive Enhancement - Umit NaimianVisuality
 
From idea to concept - webinar by Michał Krochecki
From idea to concept - webinar by Michał KrocheckiFrom idea to concept - webinar by Michał Krochecki
From idea to concept - webinar by Michał KrocheckiVisuality
 
Immutability and Javascript - Nadia Miętkiewicz
Immutability and Javascript - Nadia MiętkiewiczImmutability and Javascript - Nadia Miętkiewicz
Immutability and Javascript - Nadia MiętkiewiczVisuality
 

More from Visuality (20)

What is NOT machine learning - Burak Aybar
What is NOT machine learning - Burak AybarWhat is NOT machine learning - Burak Aybar
What is NOT machine learning - Burak Aybar
 
Do you really need to reload?
Do you really need to reload?Do you really need to reload?
Do you really need to reload?
 
How to check valid email? Find using regex(p?)
How to check valid email? Find using regex(p?)How to check valid email? Find using regex(p?)
How to check valid email? Find using regex(p?)
 
Fantastic stresses and where to find them
Fantastic stresses and where to find themFantastic stresses and where to find them
Fantastic stresses and where to find them
 
Fuzzy search in Ruby
Fuzzy search in RubyFuzzy search in Ruby
Fuzzy search in Ruby
 
Rfc process in visuality
Rfc process in visualityRfc process in visuality
Rfc process in visuality
 
GraphQL in Ruby on Rails - basics
GraphQL in Ruby on Rails - basicsGraphQL in Ruby on Rails - basics
GraphQL in Ruby on Rails - basics
 
Consumer Driven Contracts
Consumer Driven ContractsConsumer Driven Contracts
Consumer Driven Contracts
 
How do we use CircleCi in Laterallink?
How do we use CircleCi in Laterallink?How do we use CircleCi in Laterallink?
How do we use CircleCi in Laterallink?
 
React Native - Short introduction
React Native - Short introductionReact Native - Short introduction
React Native - Short introduction
 
Risk in project management
Risk in project managementRisk in project management
Risk in project management
 
Ruby formatters
Ruby formattersRuby formatters
Ruby formatters
 
Proxying api calls
Proxying api callsProxying api calls
Proxying api calls
 
Gogo Conference 2018
Gogo Conference 2018Gogo Conference 2018
Gogo Conference 2018
 
Pair programming- Mariusz Kozieł
Pair programming- Mariusz KoziełPair programming- Mariusz Kozieł
Pair programming- Mariusz Kozieł
 
Introduction to R Language
Introduction to R LanguageIntroduction to R Language
Introduction to R Language
 
Dashing, smashing, party crashing
Dashing, smashing, party crashingDashing, smashing, party crashing
Dashing, smashing, party crashing
 
Progressive Enhancement - Umit Naimian
Progressive Enhancement - Umit NaimianProgressive Enhancement - Umit Naimian
Progressive Enhancement - Umit Naimian
 
From idea to concept - webinar by Michał Krochecki
From idea to concept - webinar by Michał KrocheckiFrom idea to concept - webinar by Michał Krochecki
From idea to concept - webinar by Michał Krochecki
 
Immutability and Javascript - Nadia Miętkiewicz
Immutability and Javascript - Nadia MiętkiewiczImmutability and Javascript - Nadia Miętkiewicz
Immutability and Javascript - Nadia Miętkiewicz
 

Czego nie robić przy pisaniu testów