Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:02,100 --> 00:00:05,250
So before we get started writing any code,
2
00:00:05,250 --> 00:00:08,440
what actually is testing?
3
00:00:08,440 --> 00:00:12,420
Well, we did test a lot in this course already,
4
00:00:12,420 --> 00:00:15,600
we did a lot of manual testing.
5
00:00:15,600 --> 00:00:19,500
So that means that we, as a developer, write some code
6
00:00:19,500 --> 00:00:23,520
to implement a certain feature or fix a certain issue
7
00:00:23,520 --> 00:00:27,130
and then of course, we preview that application
8
00:00:27,130 --> 00:00:29,700
in the browser and we test it there.
9
00:00:29,700 --> 00:00:32,820
That's what we do all the time as developers,
10
00:00:32,820 --> 00:00:35,720
that's what we did all the time in this course,
11
00:00:35,720 --> 00:00:39,860
it's super important because we see what our users will see
12
00:00:39,860 --> 00:00:41,960
and we definitely wanna polish that
13
00:00:41,960 --> 00:00:44,040
and make sure that this works,
14
00:00:44,040 --> 00:00:46,770
and that this is not going to go away.
15
00:00:46,770 --> 00:00:51,770
But, testing the app manually is also error-prone,
16
00:00:52,030 --> 00:00:56,160
at least if it's the only kind of testing you do.
17
00:00:56,160 --> 00:00:58,710
Simply because it's hard to test
18
00:00:58,710 --> 00:01:02,170
all possible combinations and scenarios.
19
00:01:02,170 --> 00:01:04,629
If you have a very complex React app
20
00:01:04,629 --> 00:01:07,670
with a lot of different pages and features,
21
00:01:07,670 --> 00:01:10,170
and you then add a new feature,
22
00:01:10,170 --> 00:01:14,090
or you change an aspect of an existing feature,
23
00:01:14,090 --> 00:01:16,770
you will probably test that change
24
00:01:16,770 --> 00:01:18,630
or that new feature,
25
00:01:18,630 --> 00:01:21,250
but you're not going to test all the other parts
26
00:01:21,250 --> 00:01:23,780
of your application all the time.
27
00:01:23,780 --> 00:01:26,940
And therefore, you might change something
28
00:01:26,940 --> 00:01:30,160
which breaks some other feature in your app
29
00:01:30,160 --> 00:01:33,520
and since you're not testing everything all the time,
30
00:01:33,520 --> 00:01:36,960
that breaking change, that bug,
31
00:01:36,960 --> 00:01:41,960
might slip through and maybe you eventually catch it later,
32
00:01:42,100 --> 00:01:45,780
but that's not guaranteed and you might catch it too late
33
00:01:45,780 --> 00:01:48,850
and it might then cause some extra work.
34
00:01:48,850 --> 00:01:53,020
And that's where automated testing steps in.
35
00:01:53,020 --> 00:01:57,110
This is not a replacement for manual testing,
36
00:01:57,110 --> 00:02:00,240
manual testing will always be super important,
37
00:02:00,240 --> 00:02:02,080
but it's an addition.
38
00:02:02,080 --> 00:02:07,020
With automated testing, you write extra code
39
00:02:07,020 --> 00:02:10,210
that runs and tests your other code,
40
00:02:10,210 --> 00:02:12,630
your main application code.
41
00:02:12,630 --> 00:02:14,510
And this might sound super weird,
42
00:02:14,510 --> 00:02:17,440
but this is a standard procedure,
43
00:02:17,440 --> 00:02:21,790
a standard thing to do in modern development.
44
00:02:21,790 --> 00:02:24,401
And the good thing abut that is,
45
00:02:24,401 --> 00:02:26,450
that since you write code
46
00:02:26,450 --> 00:02:30,160
that tests your entire application automatically,
47
00:02:30,160 --> 00:02:34,450
you can always test everything no matter what you changed
48
00:02:34,450 --> 00:02:37,130
because you will automatically then test
49
00:02:37,130 --> 00:02:38,420
your entire application,
50
00:02:38,420 --> 00:02:41,810
it doesn't cost you a lot of time to do that.
51
00:02:41,810 --> 00:02:45,210
And therefore, you typically write such tests,
52
00:02:45,210 --> 00:02:48,240
such automated tests that test
53
00:02:48,240 --> 00:02:51,830
the different individual building blocks of your app,
54
00:02:51,830 --> 00:02:56,270
but where you then test all those building blocks together,
55
00:02:56,270 --> 00:02:59,220
whenever you make changes to your code basically.
56
00:02:59,220 --> 00:03:04,220
Instead of testing only parts of your app from time to time.
57
00:03:04,700 --> 00:03:07,110
And that's therefore very technical,
58
00:03:07,110 --> 00:03:10,460
but it allows you to test everything all the time
59
00:03:10,460 --> 00:03:13,240
and combined with manual testing,
60
00:03:13,240 --> 00:03:17,010
that allows you to catch errors way earlier
61
00:03:17,010 --> 00:03:18,920
and it allows you to write
62
00:03:18,920 --> 00:03:22,003
and ship better code in applications.
4952
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.