5 Types of Testing Software Every Developer Needs to Know!

  Рет қаралды 72,170

Alex Hyett

Alex Hyett

Күн бұрын

Пікірлер: 49
@RahulGupta-lq3px
@RahulGupta-lq3px 4 ай бұрын
Better than any video I've seen on the Internet on this topic. Useful for both client and testers. Great Work!
@yassinesedjari1880
@yassinesedjari1880 Жыл бұрын
Thanks Alex, concise and straight to the point explanation. 👌
@alexhyettdev
@alexhyettdev Жыл бұрын
You're welcome, I hope it was useful for you.
@kcayushma
@kcayushma 7 ай бұрын
Got the concept in 6 mins vs 3hr of lectures and mediocre bragging thank you 🙏
@NaftuliSinger
@NaftuliSinger 5 ай бұрын
Great straight to the point video! Thank you!
@codewithbru
@codewithbru 9 ай бұрын
This video was very useful, thank you very much! Your editing is amazing :)
@alexhyettdev
@alexhyettdev 9 ай бұрын
Thank you! I am glad it was useful.
@Jelvix
@Jelvix 4 ай бұрын
Hi! Thanks for this video! It's incredibly helpful, especially for those who are just beginning their journey. It's great that you are sharing your knowledges. Our QA team also created good video for QA and future QA - we collected the software testing trends for 2024
@TheAnonJohn
@TheAnonJohn Ай бұрын
hello, informative video. As per ISTQB the testing pyramid consist of 4 levels : unit tests at the bottom, then integration, then system and finally acceptance testing at the very top. Is this the same pyramid as yours in the video or a somewhat different version?
@AnkitTiwari-dq7qm
@AnkitTiwari-dq7qm Жыл бұрын
Good explanation❤️
@alexhyettdev
@alexhyettdev Жыл бұрын
Thank you, I am glad you liked it.
@Gimmy27
@Gimmy27 3 ай бұрын
wouldn't you need n+1 tests instead of 2^n for mcdc?
@チョリパン-j4f
@チョリパン-j4f 3 ай бұрын
thanks great explanation!!
@markodjordjevic6920
@markodjordjevic6920 7 ай бұрын
Great video, I have just one question. What are API tests ? They seem to me like they are actually component tests, but these naming conventions can be quite confusing.
@zentelia3666
@zentelia3666 7 ай бұрын
API testing, a subset of component testing, focuses on evaluating the functionality, reliability, performance, and security of application programming interfaces (APIs) to ensure seamless communication between different software components and systems. Basically in Component or Integration testing, you use the program API to do your test.
@grokitall
@grokitall 3 ай бұрын
i would tend to disagree. an api is in general a stable set of interfaces between one set of code and another. when you publish code for others to use, you declare that the published interfaces will remain stable through bug fixes and extensions, only breaking with major new versions where the code could not be fixed without breaking the api. when you write your tests against the public api, you test that you have not broken things for the users of that code, while allowing the code the ability to mutate underneath the api in any way needed to improve the code. any code not covered by api tests is either exercised by the code behind the api, and thus tested by the api tests, or is dead code, and can just be deleted. the customer in this case can either be your own higher level code, or somebody else using your api, and the code behind the api generally gets split out into a new library which other programs then don't have to reimplement themselves.
@RonnieDenzel
@RonnieDenzel 3 ай бұрын
Best summary for all the types of tests and their importance than any other video on the web💯
@melk48111
@melk48111 5 ай бұрын
what about regression test?
@fxstreamer238
@fxstreamer238 9 күн бұрын
easier said than done thats why litterally no youtuber evr wrote a unit test in their life
@terry-
@terry- 7 ай бұрын
Great!
@yantaosong
@yantaosong 10 ай бұрын
thanks ,Alex , but can't understand the component test .
@Lu149
@Lu149 10 ай бұрын
think if you're testing a car. You would want to test the engine on its own (component testing). The individual parts of the engine will also need to be tested i.e fuel injectors (unit testing). Then you want to test how the engine fits into the car model (integration testing)
@Yon-ld9pk
@Yon-ld9pk 4 күн бұрын
🤘
@DaveThomson
@DaveThomson 4 ай бұрын
Every Lions fan knows MC DC stands for Motor City Dan Campbell
@kazian5453
@kazian5453 3 ай бұрын
Why are we still teaching a model that is 15 years old? None of our software architectures follow the same patterns as what was popular in 2009. Many of the struggles that we saw in 2009 that puts UI and E2E tests at the top of the pyramid no longer exist.
@alephNull_
@alephNull_ 3 ай бұрын
They still do, it depends on your industry. In embedded SE things move slower, tests are more difficult, and a significant amount of testing could be physical 😅
@grokitall
@grokitall 3 ай бұрын
not only does it depend on the industry, but also on the type of code being written. end to end tests and even more so ui tests tend to be fragile, with multiple levels of detail hiding, and often the best answer you can get from them is that it broke. it is often very hard to determine with these types of tests why it broke, hence the comment in the video about needing stack traces. even worse, when the code was designed without testing in mind, you often end up having to break information hiding to get them to run at all, at which point you are no longer testing just the api, but are adding implementation details to get it to run at all. the test then breaks when you change these details, even though you did not change the api. this is why you can tell how the code was developed, as doing test first moves everything without side effects down the pyramid, leaving your stuff with side effect being much smaller, and thus easier to test. it also fundamentally changes the nature of this code to make it testable through the stable api. this leaves you with a thin ui on top of a more modular, better separated code base, making changing from a command line to a gui to a web ui fairly simple. when you do minimal testing before coding, your code tends to be more coupled, harder to test, with a lot of the stuff which does not need to be embedded inside the ui code. combine this with ui and end to end testing, and the tests are a pain to write, even more of a pain to maintain, and don't give a very clear picture of what broke and how it broke. as you can imagine this leads o lot of ui and end to end proponents writing very few tests, and those tests provide minimal value and break a lot, reinforcing their dislike of testing and making all testing seem pointless due to their problems with using high level, low value tests on legacy code bases which were not designed to be testable. when you do test first, you fundamentally change that dynamic, as the tests are very fast, run against the public api, and tell you exactly what broke and why. for example saying that function x returned value y and should have returned z instead, when passed the parameters a,b and c. as they also run against every change, you know it was the bit you just changed that broke it, what the correct answer should be, and what wrong answer you got instead. this fast and detailed feedback with every change minimises the debugging cost a lot, to the extent that some projects with millions of lines of code spend very little time actually debugging code. of course the cost is that you have to write the tests first, and run them with every change, but the benefit is massive savings on debugging time if you write the tests well, and code which is easier to test, and to maintain.
@laynierpiedra8278
@laynierpiedra8278 Ай бұрын
can you speak slow? Thanks for the info
@krausi2
@krausi2 Ай бұрын
speak slower......
@Lisa__g06
@Lisa__g06 2 ай бұрын
Seriously, more steps for quick and efficient refunds?
@ashleyzimmermann5503
@ashleyzimmermann5503 6 ай бұрын
Thank you!! So helpful!
@khushsanghavi8805
@khushsanghavi8805 Жыл бұрын
excellent explanation...just one doubt...what is the exact difference between component and integration testing then?
@alexhyettdev
@alexhyettdev Жыл бұрын
So component testing is testing a component in isolation from everything else. So think of an API but with any external API calls and the database mocked out. Integration testing is testing multiple components together.
@grokitall
@grokitall 3 ай бұрын
the only comment i would make to that is that if you do test first development, you don't tend to write your code so that they need mocking in the first place, and all of the code which has side effects moves to the edge of the system, where the rest doesn't need component tests, and the bit which does have side effects tends to become ui or end to end tests, meaning that for people doing test first, component testing tends to completely disappear from the pyramid. i would therfore tend to view the existence of component test as a sign of poor design and lack of upfront testing.
@НашажизньвоФлориде
@НашажизньвоФлориде 7 ай бұрын
Alex thank you for your video, it was very useful. Could you please give an example of a component testing for example on Facebook login page’s.
@chenfry8849
@chenfry8849 5 ай бұрын
Your MCDC explanation is incorrect, you would need 4 for this senario. you need to show how each variable affects the outcome. The coverage you explained is predicate coverage, which is higher subsumption than MCDC.
@gaerinraj2336
@gaerinraj2336 3 ай бұрын
Thank you very much. Very clearly explained
@angellopez6687
@angellopez6687 2 ай бұрын
Very informative!
@rishichoubey5060
@rishichoubey5060 3 ай бұрын
too fast ! and not good accent
@ukaszkiepas57
@ukaszkiepas57 Жыл бұрын
thanks a lot
@alexhyettdev
@alexhyettdev Жыл бұрын
You’re welcome!
@danieloyagha100
@danieloyagha100 8 ай бұрын
Awesome
@coachobispersonalworkoutti2223
@coachobispersonalworkoutti2223 5 ай бұрын
jUST ONE QUESTION ARE THESE THE LEVELS OF TESTING OR TYPES OF TESTING
@justaQAstudent
@justaQAstudent 4 ай бұрын
i think levels
@grokitall
@grokitall 3 ай бұрын
if you exclude component testing, you end up with multiple levels which group together to do different things. when doing modern agile development practices, every test written by the developer when the code is being written is either a unit test, or an integration test, both done against the public api in the code. these two together form the regression tests used by continuous integration to test if the code continues doing what the developer intended it to do. on top of that you get your acceptance tests which includes end to end and user interface tests, but also includes the security testing, performance testing, and all other tests not directly related to if it does as the developer intended. these are used by continuous delivery systems to try and find out if any aspect except functionality broke, ie performance, memory usage, etc, and are designed to determine if what the developer intended matched what the customer wants and needs, leaving you with a system you can now deploy. component testing as described in the video and other comments seems to mix some of these things up in ways not in general usage. the functional tests used in continuous integration are designed to have the entire suite of tests run in under 5 minutes on the developers machine, to provide rapid feedback on if your new code broke functionality, and nothing else. you then push upstream, triggering upstream to do both types of testing to show if the code is deployable. this is designed to have a good enough testing environment that either the entire suite can run in an hour, or at worst that the suite can be run overnight to prevent problems with the non functional requirements making the code run worse. component testing as described seems to mix all of these different types of tests together, based not upon their purpose, but upon how they are implemented, and then adds another layer of complication due to having to do lots of mocking to get around the fact that the code under test was not written to be tested. these tests cease to exist as a separate category when you do test first development, as you don't write the sort of code that needs lots of mocks, and the rest is split by purpose.
@kodnzikus
@kodnzikus Жыл бұрын
Good stuff!
@alexhyettdev
@alexhyettdev Жыл бұрын
Thanks! I am glad you enjoyed.
@markveszelka376
@markveszelka376 6 ай бұрын
Interestingly, you mention unit testing and component testing as different levels of the pyramid, but regarding the ISTQB Foundation Level Syllabus: v 4.0: 'Component testing (also known as unit testing) focuses on testing components in isolation' v 3.1.1: 'Component testing (also known as unit or module testing) focuses on components that are separately testable.' Great video anyway! :)
When To Unit, E2E, And Integration Test
14:58
ThePrimeTime
Рет қаралды 97 М.
What is automated testing? Beginner intro & automation demo
15:47
iPhone or Chocolate??
00:16
Hungry FAM
Рет қаралды 38 МЛН
💩Поу и Поулина ☠️МОЧАТ 😖Хмурых Тварей?!
00:34
Ной Анимация
Рет қаралды 1,9 МЛН
GIANT Gummy Worm Pt.6 #shorts
00:46
Mr DegrEE
Рет қаралды 88 МЛН
5 Design Patterns That Are ACTUALLY Used By Developers
9:27
Alex Hyett
Рет қаралды 277 М.
5 Signs of an Inexperienced Self-Taught Developer (and how to fix)
8:40
Smoke vs Sanity vs Regression testing - explained with example
10:45
Software Testing Tips and Tricks
Рет қаралды 13 М.
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,5 МЛН
Software Testing Explained: How QA is Done Today
11:26
AltexSoft
Рет қаралды 207 М.
Test-Driven Development // Fun TDD Introduction with JavaScript
12:55
Different Types of Manual Testing || Functional & Non Functional Testing
34:35
Naveen AutomationLabs
Рет қаралды 245 М.
Don’t Do E2E Testing!
17:59
Continuous Delivery
Рет қаралды 155 М.
А ты уже обновился на IOS 18 ?😅 #айфон #apple #ios #ios18 #iphone
1:00
Wi-fi с бесконечным паролем 😱
0:18
FilmBytes
Рет қаралды 101 М.
Evolution of the Samsung Galaxy
0:50
ios_aesthetics
Рет қаралды 5 МЛН
Is this Samsung's change over time #shorts
0:13
Si pamerR
Рет қаралды 692 М.