Testing Vue Apps - Unit & E2E
Learn enterprise Vue best practices - unit testing, E2E testing, and continuous deployment.
I. Introduction
| 1. Course introduction (02:43) |
II. Automated browser testing with Nightwatch
| 2. Module introduction (02:35) | |
| 3. What is E2E testing and why do we need it? (05:00) | |
| 4. Setting up and using Nightwatch (05:45) | |
| 5. Designing E2E tests (05:29) | |
| 6. Creating E2E test assertions (06:17) | |
| 7. Working with page objects (07:48) | |
| 8. Controlling API server and database (12:39) | |
| 9. Registering a user (10:17) | |
| 10. Page commands (04:04) | |
| 11. Custom commands (13:06) | |
| 12. Refactoring into smaller tests (11:04) | |
| 13. Check item in cart (09:11) | |
| 14. Completing E2E tests (00:46) |
III. Frontend unit testing with Jest and Vue Test Utils
| 15. Module introduction (01:38) | |
| 16. Unit testing with Jest (04:16) | |
| 17. Testing components with Vue Test Utils (06:36) | |
| 18. Setting up component tests (10:01) | |
| 19. What is snapshot testing? (08:25) | |
| 20. Creating a wrapper factory (04:15) | |
| 21. Using mocks (08:00) | |
| 22. Testing the Item view (09:20) | |
| 23. Using stubs (08:45) | |
| 24. Using spies (07:02) | |
| 25. Testing Vuex store (07:40) | |
| 26. Testing CartItem component (16:29) | |
| 27. Completing component unit tests (01:49) |
IV. Continuous Deployment of a full-stack Vue app
| 28. Module introduction (02:21) | |
| 29. Introduction to continuous deployment (04:21) | |
| 30. Configuring GitLab CI (03:59) | |
| 31. Triggering CD workflow (06:53) | |
| 32. Stages and jobs (08:27) | |
| 33. Pipeline optimization (05:16) | |
| 34. Server unit tests (05:45) | |
| 35. E2E test job (04:14) | |
| 36. Setting up Heroku (05:09) | |
| 37. Provision mLab database (03:48) | |
| 38. Optimizing concurrency (03:58) | |
| 39. Completing CD workflow (06:38) |