Testing Javascript Block with Full Stack

We are looking for a Javascript test environment that can run tests throughout the application stack, both on the client and on the server. We use jQuery, RequireJS and Backbone.js on the client and Node.js and express on the server.

Node.js should simplify the creation of a web application by providing more similar settings for development on the client side and on the server side, using the same language (among other purposes). However, it was difficult for me to unit test and create a consistent set of technologies that work on the client and server.

We are currently using QUnit for testing on the client and Expresso and Should.js on the server. They have completely different interfaces, which makes it very difficult to verify code that is shared between the client and server. Consider, for example, a module that performs validation, both the client and server need access to this, and both must have a unit test for all clients and the server.

Essentially, I'm looking for this holy grail that allows us to develop a web application in the same way that a client-server application is developed in languages ​​like python and ruby.

+3
source share
1 answer

, - BusterJS, . , . env config buster.js :

env: "browser", // or "node"

, , .

+1

All Articles