The complete guide to testing javascript & node applications

Become job ready for advanced nodejs development by mastering testing from scratch, jest, cypress, mocha and more.

4.45 (215 reviews)
Udemy
platform
English
language
Web Development
category
instructor
10,074
students
2 hours
content
Jun 2019
last update
$49.99
regular price

What you will learn

Get a very deep understanding of unit testing

Test real world node-js APIs with both unit testing & integration testing

Become a guru at writing end to end tests for all sorts of applications

Master mocking, stubbing, and common techniques of testing applications

Understand when and how to use feature tests, unit tests, and end to end tests.

Description

When I started learning how to test, everything looked so easy. 

Assert 2 + 2 = 4 ? 

Sure, piece of cake. But when I was faced with a real world application, this was terrifying. I couldn't catch up at my job. It was depressing. I didn't understand what mocking was. Neither did I understand topics like stubbing or spying

That's why I created this course. You are going to start from scratch, understanding exactly what a test is, what an assertion is, what errors are, and then we'll move on to more basic topics like:

  • Unit testing

  • Test runners

  • Assertion libraries

  • Test suites and organising tests

  • Running tests

To master these concepts, we'll write unit tests for real world functions, and understand exactly how testing feels when working on a real world project.

We'll have a full-stack real-world advanced javascript application, build with the latest features of Javascript, and we'll clone this project, and write tests for it from scratch.

There will be plenty of assignments and code reviews, to make sure you understand exactly what is being thought in the course.

After our feet are wet , and we can write basic tests, and after solving multiple exercises, we'll move on to a more real world approach, covering advanced topics like: 

  • Feature / integration testing

  • Mocking

  • Spying & stubbing

  • Asynchronous tests

  • Database testing

  • End to end testing

We'll then dive into TEST DRIVEN JAVASCRIPT DEVELOPMENT, understanding the RED, GREEN, REFACTOR TESTING CYCLE, and how to apply this into our projects to build more robust and bug free applications. 

So what are you waiting for ? Are you ready to become an advanced javascript engineer? Enrol now and let's get started !

Content

Source code

How to get the source code for all lessons

Testing Javascript : Introduction from scratch

What is a test ?
What is an assertion ?
What are test runners ?
Testing parse and stringify functions
Testing async functions
Testing rejected promises
Code coverage
Migrating to jest

Unit testing nodejs apps

Project setup
Testing pre-save hooks for mongoose models
Mocking packages with jest
Setup and teardown
Testing instance methods
Mock functions with jest
Mock and spies
Testing the authentication middleware
Refactoring to test utils

Integration testing nodejs apis

Testing the registration process
Testing failed validations
Testing the email confirmation processes

End to end testing with cypress

Setting up cypress
Testing the home page
Testing the login process

Screenshots

The complete guide to testing javascript & node applications - Screenshot_01The complete guide to testing javascript & node applications - Screenshot_02The complete guide to testing javascript & node applications - Screenshot_03The complete guide to testing javascript & node applications - Screenshot_04

Reviews

Mossaab
May 4, 2022
Good technical introduction to JavaScript testing tools but it could be better if it tackles the testing philosophy / methodology
Amit
February 17, 2021
the course is very clear to understand but very thin in content, it gives you an idea of how to work with test but you will need to go to the test frameworks in order to understand how to work with them
Yogesh
December 27, 2020
This course is very very good if you wanted to learn testing from basics to all advanced level. First I am confused if I get whole testing by this small course or not , but really course size not make any difference. Instructor is crystal clear. and resources are great.
Kevin
October 29, 2020
I'm only through the second section and I feel a lot more confident at what i'm looking at with tests.
Roman
July 4, 2020
Gives a good overview of different types of tests in web apps: from unit all the way up to end-to-end.
Russell
June 11, 2020
Good intro into cypress testing. I can't give this course 5 stars because there is one anti-pattern with cypress selectors: https://docs.cypress.io/guides/references/best-practices.html#Selecting-Elements But other than that, very informative
Kyle
June 3, 2020
The lessons in this course are a great resource for TDD. I have already used what I've learned to improve my applications.
dr
May 27, 2020
it is very interesting but perhaps too fast. if this is a course for all levels, it should have a more step-by-step pace, especially at the beginning, when the whole project needs to be set up (github repo, vs code usage, importing modules etc.)
Mike
May 15, 2020
Very clearly starts at the very beginning on the whole subject and then before you know it, you finally have an understanding of what a JS test is and what is the difference between a test, assertion library and test runner. This course is short and very effective and saves you tons of time digging around the internet trying to figure out how to connect everything to together.
Colin
May 4, 2020
The course is well recorded. Kati speaks clearly and explains what he is doing very well. Although the source code is not provided he does provide all the tools necessary to reproduce exactly what he is demonstrating. Thanks Kati!
Mikita
March 30, 2020
Just a very basic course. If you never test your apps - it will good. But if you search knowledge about how to test your app in real life - there is nothing about it.
Brian
March 6, 2020
Absolutely excellent. The instructor covers everything with just enough detail and depth that you understand exactly what you need to do and why. I love that he not only creates his tests to pass, but then changes code in the application to prove that they all fail and explains why. Really an outstanding course on testing node applications.
Christopher
June 14, 2019
Awesome! It's a great course with lots of examples using best practices and tooling. Jest and Cypress are AWESOME and the instructors explanations are very clear and helpful.
Rane
June 7, 2019
The explanations are good, but none of the code is provided, so it is impossible to actually follow along.
Mihai
May 2, 2019
I've been working Test Automation with other technologies (backend, frontend and performance) for about 7 years. I've been meaning to start riding the JS wave for some time now, but I must say it's not the easiest of tasks, and not having the work context doesn't help. This tutorial is not exhaustive, but it's incredible value for the money and it literally gives you the wings you need to steer your career in this direction! Thank you Kati for the amazing and inspiring work!

Coupons

DateDiscountStatus
7/3/2019100% OFF
expired

Charts

Price

The complete guide to testing javascript & node applications - Price chart

Rating

The complete guide to testing javascript & node applications - Ratings chart

Enrollment distribution

The complete guide to testing javascript & node applications - Distribution chart

Related Topics

2324088
udemy ID
4/15/2019
course created date
7/3/2019
course indexed date
Bot
course submited by