All language subtitles for 008 Grouping Tests Together With Test Suites_en

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranรฎ)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

Now with our first custom tests written,

before we write more tests,

let's talk about this tests suites vs. tests thing.

As your application grows,

you typically will have dozens

or maybe hundreds or thousands of tests

and to organize and group those different tests,

you often organize them into different testing suites.

For example, all the tests, belonging to one feature,

or one component of your application,

could be grouped into one testing suite,

and you create such a testing suite,

by using the global "describe" function.

Just like "test," that's a globally available function.

You also give these two arguments,

where the first argument is a description

and this is a description of this category

to which your different tests will then belong,

and here it could be "Greeting," like this,

or "Greeting component"

to make it clear that we're talking about the tests,

belonging to the "Greeting component."

Then you have a second argument,

which also is an anonymous function here.

But in this function

you don't write the testing code itself,

but you put your different tests in there.

So we kept this test and added in this function.

And now we've got one suite

with one test

and we can have multiple suites

and we can also have multiple tests per suite.

So if I now saved this,

you see that we still have this description text,

but it's grouped below this testing group name,

this testing suite name

and you see that we have one testing suite

and one test

The same as before

because if we have no explicitly set suite,

we get one automatically.

But now, we do have our own clearly labeled suite,

which is a good idea.

As your application grows

you definitely want to group your tests like this.

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.