Static, Unit, Integration, and End-to-End Tests Explained - Software Testing Series #1

  Рет қаралды 55,958

Lucas Paganini

Lucas Paganini

Күн бұрын

"Prevention is better than cure."
Ever heard that one before? Turns out that it also applies to software. You can either fix bugs as you find them or write tests to prevent them from happening.
Writing tests has many benefits. Some of them are:
💤 You sleep better knowing that your system won't break overnight
🍻 Your colleagues feel more confident approving your code
💰 Companies want to hire you
Most developers will ignore this and keep writing code without tests, just like most people won't take care of their health until they're sick. But not you! Because you care about code quality.
This video will give you a much better foundation for software testing! We go over the following topics:
1. Static tests
2. Unit tests
3. Integration tests
4. End-to-End (E2E) tests
5. Why do we need them?
6. Which ones should you use?
Plus:
⚡️ It's only 15 minutes long
🧑‍🏫 It has code examples for each type of test
🧑‍💻 We made a GitHub repository for you to follow along
📚 Read the article: www.lucaspaganini.com/academy...
🚨 Subscribe to the newsletter: www.lucaspaganini.com/newsletter
📧 Email: me@lucaspaganini.com
🐦 Twitter: / lucaspaganini
📸 Instagram: / lucaspaganini
----------
CHAPTERS
00:00 Short Version
00:42 Introduction
00:55 What is Software testing
01:30 Static tests
05:50 Unit tests
07:19 Integration tests
09:05 End-To-End tests
12:22 Verdict
13:10 Conclusion
REFERENCES
1. Github repository with the code examples (GitHub): github.com/LucasPaganini/publ...
2. Static vs Unit vs Integration vs E2E Testing for Frontend Apps (Kent C. Dodds):
kentcdodds.com/blog/static-vs...
3. 20 Types of Tests Every Developer Should Know (Semaphore):
semaphoreci.com/blog/20-types...
4. Lint Code: What Is Linting + When To Use Lint Tools (Perforce):
www.perforce.com/blog/qac/wha...
5. Types of Software Testing: Different Testing Types with Details (hackr.io):
hackr.io/blog/types-of-softwa...
6. What is Unit Testing? (Autify Blog):
blog.autify.com/what-is-unit-...
7. Integration Tests (with examples) by Team Merlin (Government Digital Services, Singapore):
blog.gds-gov.tech/integration...
8. Types of Software Testing | The Complete List (Edureka):
www.edureka.co/blog/types-of-...
9. JavaScript Static Code Analysis & Security Review Tool (SonarQube):
www.sonarqube.org/features/mu...
10. How to Perform End-to-End Testing (Smart Bear):
smartbear.com/learn/automated...
11. What Is End-To-End Testing: E2E Testing Framework with Examples (Software Testing Help):
www.softwaretestinghelp.com/w...
12. ESLint no-var rule (ESLint documentation):
eslint.org/docs/rules/no-var
13. Airbnb style conventions (GitHub):
github.com/airbnb/javascript
14. Facebook style conventions for JavaScript projects (GitHub): github.com/facebook/fbjs
#softwaretesting #javascript #typescript

Пікірлер: 20
@tabliqatchi6696
@tabliqatchi6696 Жыл бұрын
Great thank you! Fun, informative and TOP NOTCH as always Lucas. ✌ I have a question about integration tests: At kzbin.info/www/bejne/in3GlKGBfrKanaM it sounds a lot like unit testing to me, because in unit testing we don't care about what's inside "the unit" and we just care about the input and output, right? In this test case also, I don't see "a combination of units" being tested, rather, it's only that we "know" (implicitly, when writing the test) that "a unit" has used another unit. That's it, it's not reflected in our tests. Sounds a bit smelly to me. May I know your opinion on it? Thanks again your videos are really really amazing. It's one of the email subscriptions that I actually care about lol.
@LucasPaganiniWeb
@LucasPaganiniWeb Жыл бұрын
First off, thank you so much for your kind words! I sincerely appreciate it! Re. the integration test, I believe you are correct. Thanks for pointing that out! After rewatching it, my example was indeed a bad one. I'll pin your comment so that future viewers can see it. A better example would be to check how the state of two different classes changes as they interact with each other. Such as how Martin Fowler (see the "Regular Tests" chapter here martinfowler.com/articles/mocksArentStubs.html ) checks the state of a Warehouse instance as the user applies an Order instance to it.
@learnbysakshi
@learnbysakshi Жыл бұрын
P0000000
@EmbeddedMastery
@EmbeddedMastery Ай бұрын
Loved the series, thanks for taking the time to explain these concepts ❤
@MY-rl6pv
@MY-rl6pv 3 ай бұрын
very clear explanation the best so far i found after seaching one hour
@hectorg362
@hectorg362 Жыл бұрын
Thanks. I really need to start learning how to do testing. It's a part I've neglected a lot.
@LucasPaganiniWeb
@LucasPaganiniWeb Жыл бұрын
Glad it was helpful!
@rennnn...
@rennnn... 7 ай бұрын
Perfect video thanks!
@kalpanasharma8036
@kalpanasharma8036 Жыл бұрын
Its really helpful...thanks a lot 🤝
@LucasPaganiniWeb
@LucasPaganiniWeb Жыл бұрын
Glad to hear that!
@yaregobrozek3725
@yaregobrozek3725 Жыл бұрын
Niceeee!🔥
@LucasPaganiniWeb
@LucasPaganiniWeb Жыл бұрын
Thanks 🔥
@LucasPaganiniWeb
@LucasPaganiniWeb Жыл бұрын
🚨 Join the waiting list for my ✨Web Animations Course✨ to get a discount when the course launches: www.lucaspaganini.com/web-animations
@memegalore257
@memegalore257 Жыл бұрын
Damn, this is called "perfect video"🔥
@LucasPaganiniWeb
@LucasPaganiniWeb Жыл бұрын
Thanks! That was a perfect comment haha
@fabianorocha6320
@fabianorocha6320 Жыл бұрын
Muito bom 👍
@LucasPaganiniWeb
@LucasPaganiniWeb Жыл бұрын
Thanks!
@suprovatray7288
@suprovatray7288 Жыл бұрын
@@LucasPaganiniWeb l
@zubedashaik7431
@zubedashaik7431 Жыл бұрын
Please avoid back ground music
@LucasPaganiniWeb
@LucasPaganiniWeb Жыл бұрын
Hey, thanks for the feedback! Could you elaborate more on that, please? What exactly is the issue with the music?
What Is End To End Testing?
6:27
Syntax
Рет қаралды 41 М.
Don’t Do E2E Testing!
17:59
Continuous Delivery
Рет қаралды 149 М.
Como ela fez isso? 😲
00:12
Los Wagners
Рет қаралды 31 МЛН
Bro be careful where you drop the ball  #learnfromkhaby  #comedy
00:19
Khaby. Lame
Рет қаралды 48 МЛН
狼来了的故事你们听过吗?#天使 #小丑 #超人不会飞
00:42
超人不会飞
Рет қаралды 62 МЛН
Get to know GitHub Copilot in VS Code and be productive IMMEDIATELY
4:45
Visual Studio Code
Рет қаралды 96 М.
Stop Writing So Many Tests
10:02
Web Dev Simplified
Рет қаралды 80 М.
Software Testing Tutorial #28 - End to End Testing in Software Testing
19:08
Software Testing Mentor
Рет қаралды 41 М.
End to End Testing - Explained
6:44
Mehul - Codedamn
Рет қаралды 22 М.
5 Types of Testing Software Every Developer Needs to Know!
6:24
The cleanest way to use Docker for testing in .NET
13:36
Nick Chapsas
Рет қаралды 85 М.
POCO F6 PRO - ЛУЧШИЙ POCO НА ДАННЫЙ МОМЕНТ!
18:51
Power up all cell phones.
0:17
JL FUNNY SHORTS
Рет қаралды 50 МЛН
Nokia 3310 versus Red Hot Ball
0:37
PressTube
Рет қаралды 3,8 МЛН
cool watercooled mobile phone radiator #tech #cooler #ytfeed
0:14
Stark Edition
Рет қаралды 7 МЛН