Afrikaans
Akan
Albanian
Amharic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranî)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
In the last video we learned about the setup method and how it can be used to execute some code before
each test.
And in addition to setup there are some other test lifecycle methods that we should know about.
And this diagram represents the various metals that we could have inside the TEST file.
So if we want we can write a number of tests which are all different but then we can add a setup method.
And this contains code that is executed before each test.
And we have seen a good example of that in the previous video where we have set the default locale for
our date for mounting tests and then we can have a third down method which runs after each test.
And this is normally used to dispose of some of the resources that were used during the test and then
we also had set up all and tear down all metals which are only executed once before and after all the
tests.
So if you were to run a test file that contains this method this is the order in which each method will
be called First of all we would get a call to set up all and then we would get set up test 1 and third
down and this pattern would be repeated for each test and after third down is called for the last test
then tear down all its gold as well.
And as we make progress we will see some examples using these test metals but for now the key takeaway
is that you can use setup tear down set up all and tell them all to execute some common code that you
would otherwise have to repeat inside each test body and these hubs skipping your tests organized.
OK.
So let's continue on the next video.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.