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

  Рет қаралды 56,668

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 2 жыл бұрын
Great thank you! Fun, informative and TOP NOTCH as always Lucas. ✌ I have a question about integration tests: At kzfaq.info/get/bejne/irKTltF8rrPLl3U.html 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 2 жыл бұрын
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 2 ай бұрын
Loved the series, thanks for taking the time to explain these concepts ❤
@rennnn...
@rennnn... 9 ай бұрын
Perfect video thanks!
@MY-rl6pv
@MY-rl6pv 4 ай бұрын
very clear explanation the best so far i found after seaching one hour
@hectorg362
@hectorg362 2 жыл бұрын
Thanks. I really need to start learning how to do testing. It's a part I've neglected a lot.
@LucasPaganiniWeb
@LucasPaganiniWeb 2 жыл бұрын
Glad it was helpful!
@kalpanasharma8036
@kalpanasharma8036 Жыл бұрын
Its really helpful...thanks a lot 🤝
@LucasPaganiniWeb
@LucasPaganiniWeb Жыл бұрын
Glad to hear that!
@yaregobrozek3725
@yaregobrozek3725 2 жыл бұрын
Niceeee!🔥
@LucasPaganiniWeb
@LucasPaganiniWeb 2 жыл бұрын
Thanks 🔥
@memegalore257
@memegalore257 Жыл бұрын
Damn, this is called "perfect video"🔥
@LucasPaganiniWeb
@LucasPaganiniWeb Жыл бұрын
Thanks! That was a perfect comment haha
@fabianorocha6320
@fabianorocha6320 2 жыл бұрын
Muito bom 👍
@LucasPaganiniWeb
@LucasPaganiniWeb 2 жыл бұрын
Thanks!
@suprovatray7288
@suprovatray7288 Жыл бұрын
@@LucasPaganiniWeb l
@LucasPaganiniWeb
@LucasPaganiniWeb Жыл бұрын
🚨 Join the waiting list for my ✨Web Animations Course✨ to get a discount when the course launches: www.lucaspaganini.com/web-animations
@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?
Don’t Do E2E Testing!
17:59
Continuous Delivery
Рет қаралды 151 М.
Stop Writing So Many Tests
10:02
Web Dev Simplified
Рет қаралды 83 М.
Who has won ?? 😀 #shortvideo #lizzyisaeva
00:24
Lizzy Isaeva
Рет қаралды 41 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:25
CRAZY GREAPA
Рет қаралды 18 МЛН
когда повзрослела // EVA mash
00:40
EVA mash
Рет қаралды 4,3 МЛН
That's how money comes into our family
00:14
Mamasoboliha
Рет қаралды 9 МЛН
When To Unit, E2E, And Integration Test
14:58
ThePrimeTime
Рет қаралды 90 М.
tRPC, gRPC, GraphQL or REST: when to use what?
10:46
Software Developer Diaries
Рет қаралды 72 М.
Test-Driven Development // Fun TDD Introduction with JavaScript
12:55
Unit tests vs. Integration tests - MPJ's Musings - FunFunFunction #55
28:04
Thoughts About Unit Testing | Prime Reacts
11:21
ThePrimeTime
Рет қаралды 212 М.
End to End Testing - Explained
6:44
Mehul - Codedamn
Рет қаралды 23 М.
The ONLY REASON To Unit Test
8:26
Theo - t3․gg
Рет қаралды 72 М.
The Testing Technique Everyone Should Use in .NET
9:56
Nick Chapsas
Рет қаралды 57 М.
WATERPROOF RATED IP-69🌧️#oppo #oppof27pro#oppoindia
0:10
Fivestar Mobile
Рет қаралды 17 МЛН
ПОКУПКА ТЕЛЕФОНА С АВИТО?🤭
1:00
Корнеич
Рет қаралды 3,7 МЛН
Easy Art with AR Drawing App - Step by step for Beginners
0:27
Melli Art School
Рет қаралды 9 МЛН
Мой инст: denkiselef. Как забрать телефон через экран.
0:54