قالب وردپرس درنا توس
Home / IOS Development / Testing in Node – a new skill pack on the border

Testing in Node – a new skill pack on the border



You Should Have a Test Pack

Software tests increase confidence in an application's behavior, make it easier to grow and maintain, help identify break bugs and even act as a form of documentation. For a developer who is practicing TDD, writing tests is another important step before writing any application code.

The problem tests reduce, are costly to solve, so they help organizations as much as developers.

Of course tests don & # 39; Don't write yourself, and there's a cost associated with creating a comprehensive test suite for an application. One of the obstacles to creating a useful test package is building the infrastructure required to write and run tests. Programs are complicated animals, and useful tests need to deal with this complexity.

Inspiration

Recently, I created a test package for a client's Node.js project. I love working in Node.js because it is an un-opinionated framework that gives developers a lot of freedom to tap into the large ecosystem of JavaScript packages. The large ecosystem also extends to testing tools, so even for anyone who has done a lot of JavaScript testing, you can set up a test package for the first time or add new tools to an existing test package. I wanted to share the test tools I use on Node projects and demonstrate how they are configured to build a test package that is scalable and provides meaningful feedback on a program. Testing in Node is a skill pack on the border I created to do so.

Note that although the series focuses on adding test coverage to a Node app, most tools and strategies can be used for all JavaScript applications. [1

9659008] The series

During the series we add test coverage to a full-stack messaging app called ChattrBox. You may be familiar with this app from the Big Nerd Ranch Front-End Web Development Book or our Full-Stack and React Essentials Bootcamp. It is a modern, full-featured web app that has a Node backend running web contacts and a REST API to connect the front end chat interface. If you learn web development, I encourage you to keep up with the book and build the app yourself. But if you just want to learn how to use some JavaScript test tools, you can download the program code from the border and focus on the screencast material.

The series does not cover test philosophy or offer any opinions on what is or is not a good test, but it will show you how to add and configure a set of tools that allow you to write thorough tests to support a program . If you are looking for ideas on how to write good tests when you have the tools set up, have a look at some of the other Nerds test blog entries.

Summary

If you are new to testing in JavaScript and Node, this is a great series for you. If you have an existing app and test suite that you want to expand, you should be able to cherry pick some screencasts from the series that provide valuable direction for your unique situation.

The series describes my approach to Node or JavaScript testing, and there are many other valid approaches. If you prefer another tool or strategy, tell us about it in the comments. You are also welcome to ask questions in the comments field. We get someone to help you.

The series starts with the "Basic" video, so I see you there when you're ready to get started.


Source link