Typescript Unit Testing Training Course
TypeScript is an open source language for building enterprise Javascript applications. It is a strict superset of JavaScript that compiles to plain Javascript and brings static typing and object-oriented development to the language.
This instructor-led, live training introduces TypeScript's unit testing features and frameworks. Participants get a chance to put theory to practice by constructing a collection of unit tests that can be run against real-life applications.
Format of the Course
- Interactive lecture and discussion.
- Lots of exercises and practice.
- Hands-on implementation in a live-lab environment.
Course Customization Options
- This course will focus on the frameworks that can be used to unit test a Javascript or Typescript application (Jasmine, Mocha, Jest, Chai, etc.).
- UI frameworks such as React are optional and can be covered if desired.
- To request a customized training for this course, please contact us to arrange.
Course Outline
Introduction
- Understanding Unit Testing
Overview of Typescript Unit Test Frameworks
- Jasmine, Mocha, Jest, Chai
- Unit test uses cases
Setting up the Testing Environment
- Downloading and installing the libraries
- Installing and configuring an IDE
- Setting up a sample application
Overview of Typescript
- Typescript vs Javascript and other languages
- Understanding Typescript syntax and features
Writing Your First Unit Test
- Setting up a test
- Writing a test definition
- Working with nested scoping
- Creating assertions
- Running the unit test
Debugging the unit test
- Stepping through the code
- Creating breakpoints
- Setting up debug tasks
Expanding the Unit Test
- Writing a complex Typescript class
- Writing stubs and mocks
- Creating a Test Suite
Writing More Tests
- Testing Node.js
- HTTP endpoint unit tests
- Testing a REST APIs
- Writing an integration test
- Testing React components (optional)
Troubleshooting
Summary and Conclusion
Requirements
- An understanding of software testing concepts
- Javascript or Typescript programming experience
- An understanding of NodeJs
Audience
- Developers
Open Training Courses require 5+ participants.
Typescript Unit Testing Training Course - Booking
Typescript Unit Testing Training Course - Enquiry
Typescript Unit Testing - Consultancy Enquiry
Consultancy Enquiry
Testimonials (2)
Technical knowledge
Mohamed Shifan - Maldives Pension Administration Office (Pension Office)
Course - Typescript Unit Testing
Provided with nestjs even though it was not on the agenda
Suhail - Maldives Pension Administration Office (Pension Office)
Course - Typescript Unit Testing
Provisional Upcoming Courses (Contact Us For More Information)
Related Courses
Advanced TypeScript
7 HoursThis instructor-led, live training in Belgium (online or onsite) is aimed at developers who wish to use TypeScript's advanced features to create and build JavaScript applications.
By the end of this training, participants will be able to:
- Set up the necessary development environment to start developing TypeScript and Node.js applications.
- Take advantage of Typescript's advanced capabilities to write clean, expressive code with fewer errors.
- Configure and use Webpack with TypeScript to build complex front-end UIs.
- Use custom data types (Union, Intersection, Tuple Types, etc.) to extend existing generic types.
- Implement asynchronous code patterns and APIs for error handling and validating responses.
- Deploy TypeScript and Node.js applications to production environments (AWS EC2, Heroku, etc.).
Agile Software Testing Overview
7 HoursThis course provides a brief introduction to Agile software testing. It deals with foundational test concepts, within the context of Agile (Scrum) development and uses Crispin & Gregory's (More Agile Testing, 2014) Agile Testing Quadrants model as a framework to explore contemporary principles and practices of Agile testing.
Test Driven Development
21 HoursThis instructor-led, live training in Belgium (online or onsite) is aimed at intermediate-level software developers and QA engineers who wish to adopt and master TDD principles and practices to improve code quality and development efficiency.
By the end of this training, participants will be able to:
- Understand the principles and workflow of Test-Driven Development (TDD).
- Write effective and maintainable unit tests.
- Utilize mocking frameworks to create comprehensive test scenarios.
- Apply TDD as a design tool to create robust and flexible code.
Ionic2
14 HoursThis instructor-led, live training in Belgium (online or onsite) is aimed at beginner-level to intermediate-level developers who wish to use Ionic 2 to build hybrid mobile applications.
By the end of this training, participants will be able to:
- Understand the fundamentals of Ionic 2 and its architecture.
- Build single-page and multi-page applications using Ionic 2.
- Customize apps with SCSS and third-party integrations.
- Test, deploy, and manage mobile app releases effectively.
Unit Testing with JUnit
21 HoursJUnit is a framework to write repeatable tests and do unit testing for Java language.
Unit Testing with PHPUnit
14 HoursThis instructor-led, live training in Belgium teaches participants how to write testable code in the form of testing units to facilitate the diagnosis, isolation, and resolution of bugs. The training walks participants through the creation of a work-ready, testing environment using the PHPUnit testing framework.
By the end of this training, participants will be able to:
- Distinguish between good and bad testing units.
- Read and interpret test results.
- Proactively manage and diagnose their code base to reduce bugs.
- Ensure that their code base is fit for continuous integration and deployment.
Unit Testing with Python
21 HoursIn this instructor-led, live training in Belgium, participants will learn how to use PyTest to write short, maintainable tests that are elegant, expressive and readable.
By the end of this training, participants will be able to:
- Write readable and maintainable tests without the need for boilerplate code.
- Use the fixture model to write small tests.
- Scale tests up to complex functional testing for applications, packages, and libraries.
- Understand and apply PyTest features such as hooks, assert rewriting and plug-ins.
- Reduce test times by running tests in parallel and across multiple processors.
- Run tests in a continuous integration environment, together with other utilities such as tox, mock, coverage, unittest, doctest and Selenium.
- Use Python to test non-Python applications.
React, Redux and TypeScript
21 HoursReact is a widely-used library for creating single page applications in JavaScript and HTML. It is used by companies such as Facebook, Instagram, Netflix or the New York Times.
This course will introduce the foundations on which React and other libraries (like Angular and Vue.js) are based on and highlight the sepecifics of React. It will also cover technologies that are commonly used with React, like Redux and React-Router.
By the end of this course participants will be able to build applications of various complexity with React while adhering to best practices.
TypeScript
7 HoursThis instructor-led, live training in Belgium introduces TypeScript's key features and walks participants through the construction of a real-life JavaScript application.
Unit Testing with C
35 HoursThis instructor-led, live training in Belgium (online or onsite) is aimed at software testers who wish to use C programming to create unit tests for C code.
By the end of this training, participants will be able to:
- Use unit testing frameworks in C to produce unit tests.
- Script custom C unit tests and add them to a call list.
- Simplify the process of debugging and refactoring code with test-driven development.
Unit Testing: MSTest, xUnit, and nUnit
21 HoursThis instructor-led, live training in Belgium (online or onsite) is aimed at software tester who wish to unit test code functionality using MSTest, xUnit, and nUnit.
By the end of this training, participants will be able to:
- Create unit tests using MSTest to test software applications.
- Display test results with CodeLens.
- Understand the different testing tools for Test-Driven Development.
Unit Testing with Javascript
7 HoursIn this instructor-led, live training in Belgium, participants will learn about various JavaScript testing frameworks as they step through the creation of a unit test suite for a web application.
By the end of this training, participants will be able to:
- Write unit tests in JavaScript using unit test frameworks such as QUnit and Jasmine
- Use frameworks such as Mocha and Chai to implement TDD and BDD
Unit Testing with C#
14 HoursUnit testing is a testing approach that tests individual units of source code by modifying its properties or triggering an event to confirm whether the outcome is as expected.
In this instructor-led, live training, participants will learn how to write and execute unit tests against a sample .Net application using C# and Visual Studio.
By the end of this training, participants will be able to:
- Use testing frameworks such as NUnit and xUnit.net to create and manage unit test code
- Define and implement a broader test driven development approach to testing
- Adapt the testing framework to extend the test coverage for an application
Audience
- Software test engineers
- Developers
Format of the course
- Part lecture, part discussion, exercises and heavy hands-on practice