Frederik 84
Frederik 84

Reputation: 61

faster testing of node.js application?

Hi guys Ive been programing in nodejs for a couple of months now. But testing of the code is a daunting task. im looking for a better way to test my code.

My current setup:

They way I test new code:

Although I can do all of these steps pretty fast , I would interested in tips to speed testing up ?

I read about nodemon and I think it would reduce on of the steps (resetting the server) ?

Frederik

Upvotes: 0

Views: 180

Answers (1)

Synook
Synook

Reputation: 357

It is possible to run your application locally on your development machine, or another machine close to your development machine (e.g. a virtual machine (VM)). This will remove the need to transfer your application over the Internet each time you want to test. In order to do this, you just need to install NodeJS from the website or the package manager, and then you can run your application on your machine.

In addition, if your testing involves the repeated completion of certain steps after changes are made, then you might be interested in a testing framework such as Mocha, which will allow you to automate the testing process using more Javascript.

Upvotes: 1

Related Questions